I'm working on 开发者_如何学Ca project that has given me MapView.xib, MapViewController.h, and MapViewController.m.
The .xib has two buttons, which are controlled in the .h and .m files. I need to create separate controller files (ExtendedMapViewController.h and ExtendedMapViewController.m) that will contain methods that control 2 more items in the MapView.xib (a segmented control that can change the map's type, and a button that will hide and show the segmented control).
I cannot figure out how to assign the IBActions to the segmented controller or the second button. Is this even possible to do? I'm fairly new to Obj-C, so even a hint in the right direction would be appreciated.
i didnt get your question clearly.if u are looking for a uisegmentedcontroller tutorial check here uisegmentedcontroller tutorial
精彩评论