uisegmentedcontrol - Segmented control in action sheet IOS -
i trying add segmented control in actionsheet same way apple's maps application has used.
i found way add subview in actionsheet's view not recommended apple.i found following comment somewhere.
you might want careful this. apple may not it. documentation: "uiactionsheet not designed subclassed, nor should add views hierarchy. if need present sheet more customization provided uiactionsheet api, can create own , present modally presentviewcontroller:animated:completion:." – eric goldberg mar 4 '14 @ 2:28
can suggest me way achieve this.
that isn't uiactionsheet
@ all. uiviewcontroller
presenting using custom 1uipresentationcontroller1 , transitiondelegate
. easy tell because takes on bar , doesn't have same style uiactionsheet
.
you can create own viewcontroller manage view you'd like, present using new custom transition api ios7.
here resources started.
https://developer.apple.com/library/ios/samplecode/lookinside/introduction/intro.html
http://www.raywenderlich.com/96062/custom-view-controller-presentation-transitions-swift
http://www.teehanlax.com/blog/custom-uiviewcontroller-transitions/
Comments
Post a Comment