1. UIPresentationController的作用 1>管理所有Modal出来的控制器 2>管理通过这个方法 - (void) presentViewController:(UIViewController *) animated:(BOOL) completion:^(void)co.....
分类:
移动开发 时间:
2015-02-08 00:21:43
阅读次数:
211
四大对象:1.UIApplication2.AppDelegate3.UIWindow4.UIViewController
分类:
其他好文 时间:
2015-02-07 11:25:38
阅读次数:
74
1.回顾UIPopoverController的使用,下面这份代码只能在ipad下运行 // 初始化控制器,SecondViewController类继承自UIViewController SecondViewController *vc = [[SecondViewController all.....
分类:
移动开发 时间:
2015-02-05 20:18:15
阅读次数:
3898
iOS视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear、viewDidDisappear的区别及用途 init-初始化程序 viewDidLoad-加载视图 viewWillAppear-UIViewController对象...
分类:
移动开发 时间:
2015-02-05 18:49:06
阅读次数:
169
github: https://github.com/hellovoidworld/HVWWeiboA.发送授权请求1.使用UIWebView加载请求页面自定义一个继承UIViewController的HVWOAuthViewController 1 // 2 // HVWOAuthViewCon....
分类:
移动开发 时间:
2015-02-05 17:46:18
阅读次数:
254
init method 关键知识点
问题描述:
fatal error: use of unimplemented initialer init(coder:) for class
代码一:
import UIKit
class ViewController:UIViewController{
init(nibName nibNameorNil:String?,bundle,nib...
分类:
其他好文 时间:
2015-02-04 11:07:16
阅读次数:
164
init method 关键知识点
问题描述:
fatal error: use of unimplemented initialer for class
代码二:
import UIKit
class ViewController:UIViewController{
var data:String?
init(para:String){
//那么参数 放...
分类:
其他好文 时间:
2015-02-04 11:06:45
阅读次数:
151
下面是ipad上的调试效果下面是代码,代码中都有注释:#import #import #import @interface RootViewController : UIViewController { AVAudioPlayer *player;}@property (nonatomic, ret...
分类:
其他好文 时间:
2015-02-02 22:56:38
阅读次数:
208
下面是具体代码:// ViewController.h#import @interface ViewController : UIViewController/*1.开发步骤 1.搭建界面 2.连线 3.编写代码2.IBAction & IBOutlet IBAction 用来和操作建立关系...
分类:
移动开发 时间:
2015-02-02 22:41:51
阅读次数:
154
两个APP之间的跳转是通过[[UIApplication sharedApplication]
openURL:url]这种方式来实现的。
1.首先设置第一个APP的url地址
2.接着设置第二个APP的url地址
3.需要跳转的时候
NSString *urlString = [NSString stringWithFormat:@"AppJumpSecon...
分类:
移动开发 时间:
2015-02-01 16:13:20
阅读次数:
218