码迷,mamicode.com
首页 >  
搜索关键字:uiviewcontroller    ( 1229个结果
UIDatePicker
一, 效果图。 #import <UIKit/UIKit.h> @interface RootViewController : UIViewController { UIDatePicker *datePicker; UILabel *timeLabel; } @end #import "RootV
分类:其他好文   时间:2016-02-26 22:11:20    阅读次数:232
Core Data数据操作
1.建立学生实体,插入100条数据 2.按条件查询学生数据 3.统计学生信息 4.修改学生信息 5.删除学生数据 import UIKit import CoreData class ViewController: UIViewController { override func viewDidLo
分类:其他好文   时间:2016-02-24 22:29:12    阅读次数:245
UIActivityViewController 系统社交化 共享
1.UIActivityViewController是继承自UIViewController,是拥有VC的特性 a.初始化 init , initWithActivityItems:applicationActivities UIActivityViewController *activity =
分类:其他好文   时间:2016-02-24 15:32:25    阅读次数:145
UI整理-----part7--模态视图 push&pop
1.@property(nullable, nonatomic,readonly) UIViewController *presentedViewController和@property(nullable, nonatomic,readonly) UIViewController *presenti
分类:其他好文   时间:2016-02-23 14:36:43    阅读次数:274
Xcode7国际化(根据系统语言切换App显示的语言) - 元宵节快乐!
老规矩, 上gif 下面是配置的大概流程: 这个是要显示中文的.strings文件的内容和格式 这个是要显示英文的.strings文件的内容和格式 下面是应用名部分: 然后下面是代码部分: import UIKit class ViewController: UIViewController { @
分类:移动开发   时间:2016-02-22 23:34:41    阅读次数:437
关于iOS中提示框的使用
关于iOS中提示框的使用在iOS8的SDK里,已经对提示框进行了更改,现在属于 UIAlertController,其接口如下声明NS_CLASS_AVAILABLE_IOS(8_0) @interface UIAlertController : UIViewController,不再是一个UIVi
分类:移动开发   时间:2016-02-22 17:32:26    阅读次数:128
UINavigationController导航控制器
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
UIViewController解耦---浅析Three20架构
前言Three20是一款由Facebook开源的框架,由大神JoeHewitt创建,曾经风靡一时,被无数开发者观阅。Three20主要提供了UI模块、Network模块以及相关的一些工具。Three20自开源之初就褒贬不一,有人称赞它强大的UI工具,也有人在诟病Three20各个模块之间的耦合度太高,而且更多人..
分类:其他好文   时间:2016-02-18 19:58:05    阅读次数:312
UIViewController的edgesForExtendedLayout属性
UIViewController的edgesForExtendedLayout属性 想必大家都遇到一种情况,明明y坐标设置的是0,但是总是被讨厌的导航栏给遮住。比如下面这个情况: UILabel *label = [[UILabel alloc] init]; label.frame = CGRec
分类:其他好文   时间:2016-02-18 00:05:23    阅读次数:184
1229条   上一页 1 ... 36 37 38 39 40 ... 123 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!