简体   繁体   中英

IBOutlets not showing up in storyboard for iPad Xcode 4

I'm creating some outlets for my UI scroll views.

These outlets show up just fine in the iPhone Interface Builder but in the iPad interface builder they are nowhere to be seen.

Any idea why?

@interface ViewController : UIViewController {
    IBOutlet UIScrollView *scroller;
    IBOutlet UIScrollView *scrollerLong;
    IBOutlet UIScrollView *scrollerHuge;
    IBOutlet UIScrollView *scrollerMassive;
    IBOutlet UIScrollView *mediumScroll;
    IBOutlet UIScrollView *scrollerHome;
}

您可以在头文件中设置属性:

@property(retain, nonatomic) IBOutlet UIScrollView *scroller;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM