一、标签视图控制器——UITabBarController 1、UITabBarController的继承关系: UITabBarController和UINavigationController一样都是继承于UIViewController。 2、创建UITabBarController 程序的添 ...
分类:
移动开发 时间:
2016-04-19 00:14:55
阅读次数:
244
1. 标签视图控制器 -- UITabBarController 视图(UIView) > 图层 > 子视图 视图控制器(UIViewController) > 管理视图 导航控制器(UINavigationController) > 管理有层次关系的视图控制器 标签视图控制器(UITabBarCo ...
分类:
移动开发 时间:
2016-04-18 20:48:28
阅读次数:
252
import Foundationimport UIKit class YijfkController:UIViewController{ override func viewDidLoad() { super.viewDidLoad() tishi.hidden = true } @IBOutle ...
分类:
其他好文 时间:
2016-04-17 16:05:34
阅读次数:
143
一、属性传值 在SecondViewController.h里 #import <UIKit/UIKit.h> @interface SecondViewController : UIViewController // 第一步:声明属性,用来存放上一页传过来的数据 @property (nonato ...
分类:
移动开发 时间:
2016-04-16 16:58:26
阅读次数:
216
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
IAlertController 同时替代了 UIAlertView 和 UIActionSheet,从系统层级上统一了 alert 的概念 —— 即以 modal 方式或 popover 方式展示。 UIAlertController 是 UIViewController 的子类,而非其先前的方式 ...
分类:
其他好文 时间:
2016-04-15 15:25:29
阅读次数:
160
如果你在一个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
- (UIViewController *)getCurrentVC { UIViewController *result = nil; UIWindow * window = [[UIApplication sharedApplication] keyWindow]; if (window.win ...
分类:
移动开发 时间:
2016-04-11 11:35:04
阅读次数:
183