Ваш код выглядит так?
@interface myViewController : UIViewController {
UIBUtton *myButton;
}
@property (nonatomic, retain) IBOutlet UIButton *myButton
@end;
@implementation myViewController
@synthesize myButton;
- (void) someMethod
{
//Use myButton Here?
CGRect r = myButton.frame;
}
@end
Или это:
@interface myViewController : UIViewController {
// No need to declare myButton for iPhone or Mac 64-bit
}
@property (nonatomic, retain) IBOutlet UIButton *myButton
@end;
@implementation myViewController
@synthesize myButton;
- (void) someMethod
{
//Use myButton Here?
CGRect r = self.myButton.frame;
}
@end
если это последнее, myButton
не является частной переменной - только свойство.