传接数据 Passing Data Between Views (实例)
传送数据 Passing Data Between Views (实例)Passing Data Between ViewsIn this tutorial i will be show
传送数据 Passing Data Between Views (实例)
Passing Data Between Views
In this tutorial i will be showing you how to create?multi functioning?buttons?
Features:
1 Label1 UITextField2 Buttons2 ViewsPassing dada between views is very handy if you require content to move throughout you application its also very helpful for games where your score or info can be passed to the next view where theres?leader boards?or extra content
?
#import "ViewController.h"@implementation secondview@synthesize passedValue;-(IBAction)back:(id)sender { ViewController *second = [[ViewController alloc] initWithNibName:nil bundle:nil]; [self presentModalViewController:second animated:YES];} - (void)viewDidLoad{ label.text = passedValue; [super viewDidLoad]; // Do any additional setup after loading the view from its nib.}
?
?
视频:http://www.youtube.com/watch?v=Y4zmM_Rqv6Y&feature=player_embedded
?
?
?
?
?