要连二次连线,
1,是连接 IBOutlet ,从界面上的 label 按住 control 的同时连到 viewcontroller.h 中。
2,是连接 button 的事件,从按钮的事件连接到 view controller.m 中。
再做些小修改就可以了。
label.text = @"hello yourname";...
分类:
移动开发 时间:
2015-01-18 22:46:12
阅读次数:
394
#ViewController.m#import "ViewController.h"@interface ViewController ()/** * storybord连线 */@property (weak, nonatomic) IBOutlet UIImageView *imageVie....
分类:
移动开发 时间:
2015-01-15 23:34:53
阅读次数:
290
#import "ViewController.h"@import MediaPlayer;@interface ViewController (){ MPMoviePlayerController *_mov;}@property (weak, nonatomic) IBOutlet UIImag...
分类:
移动开发 时间:
2015-01-15 12:46:32
阅读次数:
190
第一步在storyboard中创建一个UIIimageView对象.
@property (strong,
nonatomic) IBOutlet
UIImageView *tomImageView;
第二步创建一个图片数组.
//创建图片数组
NSMutableArray *tomImages = [NSMutableArray
array];
//图片的路径
...
分类:
其他好文 时间:
2015-01-06 18:01:39
阅读次数:
154
1.构建UI ,导入MapKit框架#import 2.添加成员变量,并连线- (IBAction)backUserLocation;@property (weak, nonatomic) IBOutlet MKMapView *mapView;3.基础设置 1 - (void)viewDidLoa...
分类:
移动开发 时间:
2014-12-17 10:39:21
阅读次数:
192
#import @interface TestCell : UITableViewCell@property (weak, nonatomic) IBOutlet UILabel *firstLabel;@property (weak, nonatomic) IBOutlet UILabel *en...
分类:
移动开发 时间:
2014-12-17 10:38:49
阅读次数:
196
1.UI搭建,import头文件#import 2.添加成员变量,并连线 1 - (IBAction)geocodeButton; 2 @property (weak, nonatomic) IBOutlet UITextField *inputAddress; 3 @property (weak,...
分类:
移动开发 时间:
2014-12-17 07:58:43
阅读次数:
239
// 用户名,Outlet告诉程序可以操作对象 // 定义属性之后,Xcode会自动建立Getter & Setter方法 @property (weak, nonatomic) IBOutlet UITextField *userNameText; // 通常,在一个类的内部,使用自...
分类:
其他好文 时间:
2014-12-13 12:02:57
阅读次数:
126
#import "ViewController.h"@interface ViewController (){ NSArray *pickerArray;}@property (weak, nonatomic) IBOutlet UIPickerView *myPickerView;@end@...
分类:
移动开发 时间:
2014-12-09 15:19:44
阅读次数:
239
#import @interface ZSDHelpCell : UITableViewCell@property (weak, nonatomic) IBOutlet UIImageView *selectImageView;@property(nonatomic,copy)NSString *q...
分类:
移动开发 时间:
2014-12-04 11:29:49
阅读次数:
140