开发者

1 ViewController and 2 modalViews Delegation

Is it possible for 1 ViewController to be the delegate for 2 ModalViews? I have this FlipsideViewController and I want it to have 2 different UIButtons. Each butt开发者_Go百科on will present a different view modally.

I made everything but wondering about the following syntax of delegation. FlipsideViewController should be the delegate for CustomImagePicker and also the delegate for the AboutViewController

@interface FlipsideViewController : UIViewController <CustomImagePickerDelegate> <AboutViewControllerDelegate>

Needless to say the complier isn't happy about the above code line. Thanks everyone.


Yes it is. For example, in code:

@interface FlipsideViewController : UIViewController <CustomImagePickerDelegate, AboutViewControllerDelegate>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜