#import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(strong,nonatomic) UIImageView *MyImage; @property(strong,nonatomic) UIT
分类:
移动开发 时间:
2016-03-09 23:54:01
阅读次数:
265
#import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(strong,nonatomic) UISlider *MySlider; @property(strong,nonatomic) UIVie
分类:
移动开发 时间:
2016-03-09 23:43:27
阅读次数:
197
ViewController.h //定义一个按钮button @property(strong,nonatomic)UIButton *button; ViewController.m #import "ViewController.h" //导入头文件 #import <AVFoundation
分类:
其他好文 时间:
2016-03-09 23:43:14
阅读次数:
211
1.全局变量: @property (nonatomic, assign) BOOL isPicUsed; 2.方法: - (NSInteger)codeLinesWithPath:(NSString *)path{ NSFileManager *fileManaget = [NSFileManag
分类:
其他好文 时间:
2016-03-09 21:03:51
阅读次数:
221
大部分的时候NSString的属性都是copy,那copy与strong的情况下到底有什么区别呢? 比如: @property (retain,nonatomic) NSString *rStr; @property (copy, nonatomic) NSString *cStr; - (void
分类:
其他好文 时间:
2016-03-09 01:21:27
阅读次数:
129
/** * 用户名 */ @property(strong,nonatomic) UITextField *txtName; @property(strong,nonatomic) UITextView *txtView; #import "ViewController.h" @interface
分类:
其他好文 时间:
2016-03-08 23:54:56
阅读次数:
203
ViewController.h @property(strong,nonatomic)UIButton *button; @property(assign,nonatomic)int number; ViewController.m //每一排的个数 int index=5; //按钮的宽度 CG
分类:
其他好文 时间:
2016-03-08 23:50:30
阅读次数:
172
#import <Foundation/Foundation.h> @interface Computer : NSObject @property(assign,nonatomic) int ComCount; -(int)Punches;//出拳 @end #import "Computer.h
分类:
其他好文 时间:
2016-03-08 23:39:44
阅读次数:
253
#import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(strong,nonatomic) UIButton *btnTest; @property(strong,nonatomic) UIText
分类:
其他好文 时间:
2016-03-08 23:18:00
阅读次数:
237
出题者简介: 孙源(sunnyxx),目前就职于百度 整理者简介:陈奕龙(子循),目前就职于滴滴出行。 转载者:豆电雨(starain)微信:doudianyu 属性可以拥有的特质分为四类: 原子性--- nonatomic 特质 在默认情况下,由编译器合成的方法会通过锁定机制确保其原子性(atom
分类:
其他好文 时间:
2016-03-08 12:03:56
阅读次数:
260