Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #import <UIKit/UIKit.h>
  2.  
  3. @interface ViewController : UIViewController
  4. @property (strong, nonatomic) IBOutlet UILabel *label;
  5. @property (strong, nonatomic) IBOutlet UITextField *textfield;
  6. @property (strong, nonatomic) IBOutlet UIButton *button;
  7.  
  8. - (IBAction)button:(id)sender;
  9.  
  10.  
  11. @end
  12.  
  13. #import "ViewController.h"
  14.  
  15. @interface ViewController ()
  16.  
  17. @end
  18.  
  19. @implementation ViewController
  20.  
  21. - (void)viewDidLoad {
  22. [super viewDidLoad];
  23. // Do any additional setup after loading the view, typically from a nib.
  24.  
  25.  
  26. }
  27.  
  28. - (void)didReceiveMemoryWarning {
  29. [super didReceiveMemoryWarning];
  30. // Dispose of any resources that can be recreated.
  31. }
  32.  
  33. - (IBAction)button:(id)sender {
  34.  
  35. _textfield.text = _label.text;
  36.  
  37. }
  38. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement