Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 14th, 2012  |  syntax: None  |  size: 0.62 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. What is the owner of UI elements of a view controller? iOS5 with ARC
  2. @interface HelloWorldAppDelegate : UIResponder <UIApplicationDelegate>
  3.  
  4. @property (strong, nonatomic) UIWindow *window;
  5.  
  6. @end
  7.        
  8. #import <UIKit/UIKit.h>
  9.  
  10. @interface HelloWorldViewController : UIViewController <UITextFieldDelegate>
  11. @property (weak, nonatomic) IBOutlet UITextField *textField;
  12. @property (weak, nonatomic) IBOutlet UILabel *label;
  13. - (IBAction)changeGreeting:(id)sender;
  14.  
  15. @property (copy, nonatomic) NSString *userName;
  16. @end
  17.        
  18. @property (weak, nonatomic) IBOutlet UITextField *textField;
  19. @property (weak, nonatomic) IBOutlet UILabel *label;