IOS中通知中心NSNotificationCenter应用总结一、了解几个相关的类1、NSNotification这个类可以理解为一个消息对象,其中有三个成员变量。这个成员变量是这个消息对象的唯一标识,用于辨别消息对象。@property(readonly,copy)NSString*name;这...
分类:
移动开发 时间:
2015-11-08 19:24:38
阅读次数:
196
在iOS 5.0及以后,iOS为UIViewController类添加了新的属性和方法:@property(nonatomic,readonly)NSArray*childViewControllers-(void)addChildViewController:(UIViewController*)...
分类:
移动开发 时间:
2015-11-06 13:01:36
阅读次数:
158
private static readonly AutoResetEvent autoResetEvent = new AutoResetEvent(false); private static void Main() { try ...
分类:
其他好文 时间:
2015-11-06 10:53:04
阅读次数:
215
属性readwrite,readonly,assign,retain,weak,strong,copy,nonatomic ,atomic的作用,使用情况及注意点 NSInteger 通知与协议的区别
分类:
移动开发 时间:
2015-11-05 23:58:20
阅读次数:
389
最近项目中用到了Jquery Easyui和KindEditor等框架组件,问题真不少啊~ 一些看起来很简单理所当然的事情,竟然花费了不少时间,才解决好~ 1.readonly和disable的区别 readonly:只读,不可编辑,提交表单时,值会提交到后端。 disable:禁止(包含了“只读”和“不可编辑”),提交表单时,值不会提交到后端。 如果需要提交到后端,在表单提交之...
分类:
Web程序 时间:
2015-11-04 21:34:42
阅读次数:
1244
input 标签的 readonly 属性 $('#id').attr("readonly","readonly")//将input元素设置为readonly $('#id').removeAttr("readonly");//去除input元素的readonly属性 if($('#id')....
分类:
Web程序 时间:
2015-11-04 11:25:51
阅读次数:
139
最近写jsp 感想 经验disabled="disabled" 不可用readonly="true"checkboxboolean 对钩validType="url"invalidMessage="url格局不正确[http://www.example.com]" 网址验证 怎么保存lo...
分类:
Web程序 时间:
2015-11-03 19:21:11
阅读次数:
198
第二遍文章我打算把const和readonly的区别拿出来讲下,因为写代码这么久我都还没搞清楚这两者的区别,实在有点惭愧,所以这一次我打算搞清楚它。定义来看看MSDN的解释:readonly:readonly关键字是可以在字段上使用的修饰符。当字段声明包括readonly修饰符时,该声明引入的字段赋...
分类:
其他好文 时间:
2015-11-03 10:37:43
阅读次数:
148
测试的方法也很简单:首先,在AppDelegate.h里面引用CoreDataHelper@property (strong, nonatomic, readonly)CoreDateHelper *coreDataHelper;ds初始化CoreDataHelper- (CoreDateHel.....
分类:
其他好文 时间:
2015-11-02 16:57:36
阅读次数:
192
const:常量,编译时即需要确定值readonly:只读变量,运行时确定值 1 class ConstReadonlyTest 2 { 3 //const String str;//错误:常量字段定义时需要指定初始值 4 //const Object...
分类:
其他好文 时间:
2015-10-28 22:58:52
阅读次数:
247