2012-01-06 85 views

回答

3

你可以做這樣的事情:

// ViewController_A.h 
@interface ViewController_A : UIViewController 
{ 
    UITextField *info; 
} 

@property(nonatomic, retain)IBOutlet UITextField *info; 

然後設置的UITextField:

NSString *someString = @"blah"; 
[[viewController_A info] setText:someString]; 
相關問題