摘要: 1.数据类型类型第一个字母大写整数 IntInt8 Int16 Int32 Int64UInt8 无符号数..FloatDoubleStringArrayDictionary类型推断var num = 1 //默认 整数var d = 1.23 //默认Double//swift 字符//双引号 1... 阅读全文
posted @ 2014-10-05 17:46 王振东 阅读(247) 评论(1) 推荐(0) 编辑
摘要: 1.首先导入第三方库#import "QRCodeGenerator.h"2.NSString *strEWM = @"http://www.baidu.com";//网址 UIImageView *imageViewEwm = [[UIImageView alloc]initWithFrame:C... 阅读全文
posted @ 2014-10-05 17:42 王振东 阅读(146) 评论(0) 推荐(0) 编辑
摘要: NSPredicate用于查询和过滤在SQL中作为查询条件通常用WHERE,但在COREDATA中作为查询条件就可以用到NSPredicate.NSPredicate 不单可以和COREDATA中的FetchRequest 配合使用。也可以与NSArray配合使用。NSPredicate 中支持的关... 阅读全文
posted @ 2014-10-05 17:33 王振东 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 在IOS CoreData中,多表查询上相对来说,没有SQL直观,但COREDATA的功能还是可以完成相关操作的。多表查询,表与表之间肯定存在某种关系,如果对于类似外连接,左连接等操作,在COREDATA中就显得无力(请高手指教了)。在上节中,介绍了一下数据库的关系查询操作。下面使用CoreData... 阅读全文
posted @ 2014-10-05 17:32 王振东 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 首先CoreData大致分五个模块来总结在上图中,我们可以看到有五个相关模块:1, Managed Object ModelManaged Object Model 是描述应用程序的数据模型,这个模型包含实体(Entity),特性(Property),读取请求(Fetch Request)等。(下文... 阅读全文
posted @ 2014-10-05 17:30 王振东 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#define USERNAME @"nameTextField"#define PASSWORD @"pswTextField"@implementation ViewController@synthesize recordBtn;@synthe... 阅读全文
posted @ 2014-10-05 13:32 王振东 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 很强大1.sortedArrayUsingSelector(按Key值大小对NSDictionary排序)NSMutableArray *array = [NSMutableArray arrayWithObjects: [NSDictiona... 阅读全文
posted @ 2014-10-05 13:30 王振东 阅读(359) 评论(0) 推荐(0) 编辑