开发者

1 ViewController and 2 modalViews Delegation

开发者 https://www.devze.com 2023-03-27 02:38 出处:网络
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 differe

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

精彩评论

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