A.内存管理 NSString: copy 基本数据类型、结构体(int, CGFloat, BOOL, CGRect等):assign 对象(如自定义model类型、NSArray、NSDictionary):strong 控件:weak
分类:
移动开发 时间:
2014-12-06 01:25:52
阅读次数:
165
#import @interface ZSDProgressView : UIView{ UIView *progressView;//进度view}//进度值@property(nonatomic,assign)float progress;@end#define UIColorFromRG...
分类:
移动开发 时间:
2014-12-05 12:35:32
阅读次数:
230
Route InstanceLet's rewrite our cities routes using a Route Instance.Create a newRoute Instancefor the'/cities'URL path and assign it to thecitiesRout...
分类:
其他好文 时间:
2014-12-05 00:40:40
阅读次数:
775
Using a Router InstanceLet's refactorapp.jsto use aRouterobject.Create a new router object and assign it to theroutervariable.var router = express.Rou...
分类:
其他好文 时间:
2014-12-05 00:40:24
阅读次数:
184
ecshop首页调用分类下的商品其实很简单,也有模板设置那里可以设置,不过那个只可以用cat_goods.lib,不方便,所以我想看看怎么能简单的实现ecshop首页调用分类下的商品只需要在index.php写上这么一句:assign_cat_goods(20,10);其中20是分类id,10是调用...
分类:
其他好文 时间:
2014-12-04 17:24:01
阅读次数:
195
有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super init];)时会报错,错误信息如下:error:Cannot assign to 'self' outside of a method in the...
分类:
其他好文 时间:
2014-12-03 22:45:04
阅读次数:
109
一.UIPickerView1.UIPickerView的常见属性// 数据源(用来告诉UIPickerView有多少列多少行)@property(nonatomic,assign) id dataSource;// 代理(用来告诉UIPickerView每1列的每1行显示什么内容,监听UIPick...
分类:
其他好文 时间:
2014-12-03 18:52:29
阅读次数:
181
一.UIPickerView1.UIPickerView的常见属性// 数据源(用来告诉UIPickerView有多少列多少行)@property(nonatomic,assign) id dataSource;// 代理(用来告诉UIPickerView每1列的每1行显示什么内容,监听UIPic....
分类:
其他好文 时间:
2014-11-29 21:23:36
阅读次数:
156
ExplanationExtend Widget3D class to create a new 3D widget.Assign a VTK actor to the widget.Set color of the widget.Construct a triangle widget and di...
分类:
其他好文 时间:
2014-11-28 16:13:07
阅读次数:
185
iOS面试题总原文地址:iOS面试题总作者:唯一的弟子1.简述OC中内存管理机制。与retain配对使用的方法是dealloc还是release,为什么?需要与alloc配对使用的方法是dealloc还是release,为什么?readwrite,readonly,assign,retain,cop...
分类:
移动开发 时间:
2014-11-27 20:17:18
阅读次数:
221