首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

传接数据 Passing Data Between Views (实例)

2012-06-29 
传送数据 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 Views

    Passing 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

    ?

    ?

    ?

    ?

    ?

热点排行