uisegmentedcontrol - Segmented control in action sheet IOS -


i trying add segmented control in actionsheet same way apple's maps application has used.enter image description here

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/documentation/uikit/reference/uipresentationcontroller_class/

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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -