一, 效果图。 #import <UIKit/UIKit.h> @interface RootViewController : UIViewController { UIDatePicker *datePicker; UILabel *timeLabel; } @end #import "RootV
分类:
其他好文 时间:
2016-02-26 22:11:20
阅读次数:
232
1.建立学生实体,插入100条数据 2.按条件查询学生数据 3.统计学生信息 4.修改学生信息 5.删除学生数据 import UIKit import CoreData class ViewController: UIViewController { override func viewDidLo
分类:
其他好文 时间:
2016-02-24 22:29:12
阅读次数:
245
1.UIActivityViewController是继承自UIViewController,是拥有VC的特性 a.初始化 init , initWithActivityItems:applicationActivities UIActivityViewController *activity =
分类:
其他好文 时间:
2016-02-24 15:32:25
阅读次数:
145
1.@property(nullable, nonatomic,readonly) UIViewController *presentedViewController和@property(nullable, nonatomic,readonly) UIViewController *presenti
分类:
其他好文 时间:
2016-02-23 14:36:43
阅读次数:
274
老规矩, 上gif 下面是配置的大概流程: 这个是要显示中文的.strings文件的内容和格式 这个是要显示英文的.strings文件的内容和格式 下面是应用名部分: 然后下面是代码部分: import UIKit class ViewController: UIViewController { @
分类:
移动开发 时间:
2016-02-22 23:34:41
阅读次数:
437
关于iOS中提示框的使用在iOS8的SDK里,已经对提示框进行了更改,现在属于 UIAlertController,其接口如下声明NS_CLASS_AVAILABLE_IOS(8_0) @interface UIAlertController : UIViewController,不再是一个UIVi
分类:
移动开发 时间:
2016-02-22 17:32:26
阅读次数:
128
UINavigationController创建有两种,第一种就是创建一个类继承UINavigationController,这个很简单,系统都会帮你弄好,你只需要在原有的基础上添加一点东西就好。不需要自己写太多东西,第二种方法需要自己写很多,要把UIViewController转换成UINavig
分类:
其他好文 时间:
2016-02-22 17:02:48
阅读次数:
159
import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() //1.Home目录,即沙盒目录 var path=NSHomeDirectory() pr
分类:
其他好文 时间:
2016-02-21 21:15:27
阅读次数:
210
前言Three20是一款由Facebook开源的框架,由大神JoeHewitt创建,曾经风靡一时,被无数开发者观阅。Three20主要提供了UI模块、Network模块以及相关的一些工具。Three20自开源之初就褒贬不一,有人称赞它强大的UI工具,也有人在诟病Three20各个模块之间的耦合度太高,而且更多人..
分类:
其他好文 时间:
2016-02-18 19:58:05
阅读次数:
312
UIViewController的edgesForExtendedLayout属性 想必大家都遇到一种情况,明明y坐标设置的是0,但是总是被讨厌的导航栏给遮住。比如下面这个情况: UILabel *label = [[UILabel alloc] init]; label.frame = CGRec
分类:
其他好文 时间:
2016-02-18 00:05:23
阅读次数:
184