传值
土鳖不土
sporting and coding
展开
-
NSUserDefault存值及跳转传值
import “ViewController.h”import “NextViewController.h”@interface ViewController () @property (weak, nonatomic) IBOutlet UITextField *sendValue; - (IBAction)buttonClick:(id)sender;@end@implementation原创 2015-02-14 13:22:53 · 565 阅读 · 0 评论 -
单例实现界面跳转传值
在singleton.h中 在singleton.m中 - (IBAction)sendBtnClick:(id)sender { singleton *sendString = [singleton shareSingleton]; sendString.sendString = self.sendTextField.text;原创 2015-03-12 22:24:28 · 754 阅读 · 0 评论 -
属性传值
#import @interface FistViewController : UIViewController @property (weak, nonatomic) IBOutlet UITextField *sendValue; - (IBAction)sendBtn:(id)sender; @end - (IBAction)sendBtn:(id)原创 2015-03-13 22:51:57 · 492 阅读 · 0 评论