开发者

Interface Builder accessing super class attribute

I have a class A, and B like these:

@interface A : UIViewController <UITableViewDelegate, UITableViewDataSource>{
   UITableView tv;
}
@end


@interface B : A {

}
@end

My quest开发者_开发百科ion is: "In the interface builder, how can I link the table view tv to the nib of class B?"

Thanks.


In class A declarration change

UITableView tv;

to

IBOutlet UITableView* tv;

Works for me.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜