摘要: 在iOS中, 界面刷新在主线程中进行, 这导致NSURLSession远程下载图片使用UIImageView直接设置Image并不能及时刷新界面.下面的代码演示了如何使用performSelectorOnMainThread: withObject: waitUntilDone: 方法来及时刷新图片... 阅读全文
posted @ 2014-06-06 12:50 一花一世界,一叶一乾坤 阅读(474) 评论(0) 推荐(0)
摘要: - (void)performSelectorOnMainThread:(SEL)aSelector withObject:(id)arg waitUntilDone:(BOOL)waitperformSelectorOnMainThread:withObject:waitUntilDone:基于默... 阅读全文
posted @ 2014-06-06 00:03 一花一世界,一叶一乾坤 阅读(845) 评论(0) 推荐(1)
摘要: 使用FMDatabase操作sqlite3数据库非常简单和方便 1 // 2 // main.m 3 // iOSDemo0602_sqlite3 4 // 5 // Created by yao_yu on 14-6-2. 6 // Copyright (c) 2014年 yao_yu. ... 阅读全文
posted @ 2014-06-03 21:47 一花一世界,一叶一乾坤 阅读(319) 评论(0) 推荐(0)
摘要: 1 // 2 // main.m 3 // OSXDemo0601_plist 4 // 5 // Created by yao_yu on 14-6-3. 6 // Copyright (c) 2014年 yao_yu. All rights reserved. 7 // 8 9 #i... 阅读全文
posted @ 2014-06-03 16:36 一花一世界,一叶一乾坤 阅读(332) 评论(0) 推荐(0)
摘要: iOS: 属性列表介绍 Introduction to Property Lists从本质上说, 属性列表就是苹果的对象数据序列化与反序列化方式属性列表使用几种数据类型把数据组织为键值表和值表 Property lists organize data into named values and li... 阅读全文
posted @ 2014-06-02 21:17 一花一世界,一叶一乾坤 阅读(180) 评论(0) 推荐(0)
摘要: 1. 创建一个空iOS应用程序(Empty Application).2. 添加加控制器类. 修改控制器类的viewDidLoad 1 - (void)viewDidLoad 2 { 3 [super viewDidLoad]; 4 //创建标题 5 UILabel *hea... 阅读全文
posted @ 2014-06-02 16:25 一花一世界,一叶一乾坤 阅读(497) 评论(0) 推荐(0)
摘要: 可视化语法 Visual Format SyntaxThe following are examples of constraints you can specify using the visual format. Note how the text visually matches the im... 阅读全文
posted @ 2014-06-01 21:35 一花一世界,一叶一乾坤 阅读(313) 评论(0) 推荐(0)
摘要: 1. 创建iOS, Single View Application.2. 修改YYViewController.m//// YYViewController.m// DynamicViewDemo//// Created by yao_yu on 14-5-28.// Copyright (... 阅读全文
posted @ 2014-05-28 17:09 一花一世界,一叶一乾坤 阅读(329) 评论(0) 推荐(0)
摘要: 1. 新建iOS -> Single View Application.2. 个性控制器文件YYViewController.m(此处修改为你相应的控制器文件名) 1 // 2 // YYViewController.m 3 // StudyDynamicButton 4 // 5 // Cr... 阅读全文
posted @ 2014-05-27 17:22 一花一世界,一叶一乾坤 阅读(358) 评论(0) 推荐(0)
摘要: 一、下载AFNetworking.二、将AFNetworking-master下的AFNetworking目录拖入到项目中三、为项目添加Linking to a Library or Framework CoreLocation.framework SystemConfiguration.fra... 阅读全文
posted @ 2014-05-20 17:35 一花一世界,一叶一乾坤 阅读(676) 评论(0) 推荐(0)