ViewController.h #import "ViewController.h" @interface ViewController () @property(strong,nonatomic)UIImageView *beijing; @property(strong,nonatomic)
分类:
移动开发 时间:
2016-03-07 22:18:37
阅读次数:
224
//1.创建视图 ViewController.h @interface ViewController : UIViewController //创建视图控件; @property(strong,nonatomic)UIView *myView; @end ViewController.m @int
分类:
其他好文 时间:
2016-03-07 22:12:34
阅读次数:
169
property 中的strong 与weak strong关键字与retain关似,用了它,引用计数自动+1,用实例更能说明一切 @property (nonatomic, strong) NSString *string1; @property (nonatomic, strong) NSStr
分类:
其他好文 时间:
2016-03-06 20:45:43
阅读次数:
138
在objective-c中,类中的全局变量经常使用如下的方式申明。 @property(nonatomic(1),strong(2))UIImageView *imageView; 其中的1,2处是对此变量的一些属性申明。有以下几种strong weakassignstrong 和 weak 是在a
分类:
其他好文 时间:
2016-03-06 01:00:29
阅读次数:
198
UIView的常见属性 @property(nonatomic,readonly) UIView *superview; 获得自己的父控件对象 @property(nonatomic,readonly,copy) NSArray *subviews; 获得自己的所有子控件对象 @property(n
分类:
其他好文 时间:
2016-03-05 00:14:04
阅读次数:
221
#import "CXDView.h" @interface CXDView () //动态图 @property (strong, nonatomic) UIImageView *loadingImageView; //提示文字 @property (strong, nonatomic) UILa
分类:
移动开发 时间:
2016-03-04 22:36:05
阅读次数:
349
第一步 , 拖两个空间textfiled和button到storyboard上的viewcontroller上。 第二步, 拖线,链接到.h文件中代码如下: @property (weak, nonatomic) IBOutlet UIButton *l_timeButton; 第三步, 在,m文件
分类:
Web程序 时间:
2016-03-03 14:42:10
阅读次数:
174
UIView的常见属性以及方法 @property(nonatomic,readonly) UIView *superview; // 获得自己的父控件对象 @property(nonatomic,readonly,copy) NSArry *subviews; // 获得自己的所有子控件对象 @p
分类:
移动开发 时间:
2016-03-03 14:33:46
阅读次数:
146
基本实现了全选,删除等按钮点击功能一. 首先,设置好基本的购物车界面,实现tableView的相关的 数据源 和 代理 方法在QHLShoppingCarController.m中写一个类扩展,定义下列属性: /** 模型数组 */ @property (nonatomic, strong) NSM
分类:
其他好文 时间:
2016-03-02 23:46:48
阅读次数:
268
#import "ViewController.h" #import "Appfz.h"@interface ViewController ()@property(nonatomic,copy)NSArray *apps;//文件读取@property(nonatomic,assign)BOOL b
分类:
其他好文 时间:
2016-03-02 09:31:21
阅读次数:
150