Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <UIKit/UIKit.h>
- @interface ViewController : UIViewController
- @property (strong, nonatomic) IBOutlet UILabel *label;
- @property (strong, nonatomic) IBOutlet UITextField *textfield;
- @property (strong, nonatomic) IBOutlet UIButton *button;
- - (IBAction)button:(id)sender;
- @end
- #import "ViewController.h"
- @interface ViewController ()
- @end
- @implementation ViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view, typically from a nib.
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- - (IBAction)button:(id)sender {
- _textfield.text = _label.text;
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement