码迷,mamicode.com
首页 >  
搜索关键字:uiviewcontroller    ( 1229个结果
iOS学习之UITabBarController
一、标签视图控制器——UITabBarController 1、UITabBarController的继承关系: UITabBarController和UINavigationController一样都是继承于UIViewController。 2、创建UITabBarController 程序的添 ...
分类:移动开发   时间:2016-04-19 00:14:55    阅读次数:244
iOSDay28之UITabBarController
1. 标签视图控制器 -- UITabBarController 视图(UIView) > 图层 > 子视图 视图控制器(UIViewController) > 管理视图 导航控制器(UINavigationController) > 管理有层次关系的视图控制器 标签视图控制器(UITabBarCo ...
分类:移动开发   时间:2016-04-18 20:48:28    阅读次数:252
延时NSTimer
import Foundationimport UIKit class YijfkController:UIViewController{ override func viewDidLoad() { super.viewDidLoad() tishi.hidden = true } @IBOutle ...
分类:其他好文   时间:2016-04-17 16:05:34    阅读次数:143
iOS学习之界面通信
一、属性传值 在SecondViewController.h里 #import <UIKit/UIKit.h> @interface SecondViewController : UIViewController // 第一步:声明属性,用来存放上一页传过来的数据 @property (nonato ...
分类:移动开发   时间:2016-04-16 16:58:26    阅读次数:216
IOS开发 - Info.plist跟pch文件的作用
IOS开发 - Info.plist和pch文件的作用1. Info.plist和pch文件的作用2. UIApplication的常见使用3. AppDelegate的代理方法4. UIApplication , AppDelegate , UIWindow , UIViewController ...
分类:移动开发   时间:2016-04-16 12:15:26    阅读次数:220
地图定位
import UIKit import CoreLocation class ViewController: UIViewController { // 如果是ios8.0以后, 在想请求用户的位置信息, 需要主动的请求授权, 系统不会再自动弹出一个窗口 lazy var locationM: CL ...
分类:其他好文   时间:2016-04-15 21:29:38    阅读次数:178
UIAlertController 的使用
IAlertController 同时替代了 UIAlertView 和 UIActionSheet,从系统层级上统一了 alert 的概念 —— 即以 modal 方式或 popover 方式展示。 UIAlertController 是 UIViewController 的子类,而非其先前的方式 ...
分类:其他好文   时间:2016-04-15 15:25:29    阅读次数:160
iOS中的initialize与load两个类方法简单理解
如果你在一个UIViewController中重写了这两个类方法,那么你会在在这个控制器中发现一下现象: 1,相同之处: (1)这两个类方法在init之前就调用了 (2)在整个应用app中无论你用到这个类多少次,这两个类方法均只会被调用一次 2,不同之处: (1)load是在initialize之前 ...
分类:移动开发   时间:2016-04-14 12:12:24    阅读次数:161
【代码笔记】剧幕拉开形的首页
一,工程图。 二,代码。 RootViewController.h #import <UIKit/UIKit.h> #import "UIImage+SplitImageIntoTwoParts.h" @interface RootViewController : UIViewController ...
分类:其他好文   时间:2016-04-14 09:23:16    阅读次数:126
iOS获取当前屏幕的视图控制器
- (UIViewController *)getCurrentVC { UIViewController *result = nil; UIWindow * window = [[UIApplication sharedApplication] keyWindow]; if (window.win ...
分类:移动开发   时间:2016-04-11 11:35:04    阅读次数:183
1229条   上一页 1 ... 30 31 32 33 34 ... 123 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!