开发者

Controlling buttons in a .xib from separate controller files

开发者 https://www.devze.com 2023-03-10 05:09 出处:网络
I\'m working on 开发者_如何学Ca project that has given me MapView.xib, MapViewController.h, and MapViewController.m.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消