2010-04-08 40 views

回答

8

如果你想一類,以符合多種協議,你只是用逗號分隔的<> S中的協議名稱:

@interface MyClass : TheSuperclass <Protocol1, Protocol2, Protocol3> 
    ... 
@end 

等等。

你的情況:

@interface MainViewController : UIViewController <FlipsideViewControllerDelegate, CLLocationManagerDelegate> 
    ... 
@end 
1

@interface MainViewController : UIViewController <FlipsideViewControllerDelegate, CLLocationManagerDelegate>{

相關問題