为什么我在头文件中声明一个方法用来载入Action Sheet,在Iterface Builder中看不到Action,我保存了的。代码如下:-(IBAction) loadActionSheet;#import <UIKit/UIKit.h>@interface FirstTabView : UIViewController <UIActionSheetDelegate> {
}-(IBAction) loadActionSheet;@end

解决方案 »

  1.   

    在头文件里面添加了 -(IBAction) loadActionSheet;要重新编译才能在IB里面看到
      

  2.   

    在IB中你是看不到UIActionSheet实例的
    你的 -(IBAction) loadActionSheet;是给IB看的一个动作。需要在IB中添加一个控件并关联此动作
    并在你的 -(IBAction) loadActionSheet {
         UIActionSheet *sheet=[[UIActionSheet alloc]
                                 initWithTitle:@"test"  .... .... ];
        [sheet showInView:self.view];
        
    }