扫码关注官方订阅号
iPhone应用能不能自定义UIActionSheet的样式,默认的那个黑了吧唧太丑了 我看有些应用类似的UIActionSheet很漂亮,他们这种是完全自己实现的,还是框架有什么接口可以调用的? 类似这种:
学习是最好的投资!
自己实现,自定义个view,写一个delegate,showInView,hide方法。 - (void)showInView:(UIView *)v { [v addsubview:self]; //通过view动画将self.center上移。 } hide时将[self removeFromSuperView]. delegate 中定义点击了哪个按钮,在实现delegate的viewcontroller中去实现就行。
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
自己实现,自定义个view,写一个delegate,showInView,hide方法。
- (void)showInView:(UIView *)v
{
[v addsubview:self];
//通过view动画将self.center上移。
}
hide时将[self removeFromSuperView].
delegate 中定义点击了哪个按钮,在实现delegate的viewcontroller中去实现就行。