第一步 创建一个UIView类 命名MoveView 在ViewController 里面的代码有注释 ...
分类:
移动开发 时间:
2016-06-27 11:58:01
阅读次数:
125
#import "ViewController.h"@interface ViewController ()<UITextFieldDelegate>{ UIView * _mainView;}@end@implementation ViewController- (void)viewDidLoad ...
分类:
其他好文 时间:
2016-06-26 22:20:05
阅读次数:
214
在iOS 5.0以前,我们在一个UIViewController中这样组织相关的UIView 在以前,一个UIViewController的View可能有很多小的子view。这些子view很多时候被盖在最后,我们在最外层ViewController的viewDidLoad方法中,用addSubvie ...
分类:
移动开发 时间:
2016-06-24 12:50:23
阅读次数:
140
最近尝试着学习iOS开发.当然学习过程中也出现过许许多多问题.最终完成了一个MVCdemo借大家参考; MVC 顾名思义 Model-View-Controller分为三层,我想ViewController,UIView以及Bean分为三个Group(*Group是没有真实文件夹的); 简单说一下需 ...
分类:
移动开发 时间:
2016-06-24 12:18:26
阅读次数:
166
想实现的效果: // // ViewController.m // A14 - 带占位符的textview // // Created by vic fan on 16/6/24. // Copyright © 2016年 李洪强. All rights reserved. // #import " ...
分类:
其他好文 时间:
2016-06-24 10:45:44
阅读次数:
134
AgentLogic*temp_agent_logic=[[AgentLogicalloc]init];[temp_agent_logicsetViewController:viewController];m_agent_logic=temp_agent_logic;#import"RootViewController.h"-(void)setViewController:(UIViewController*)view_controller;@interfaceAgentLogic()@property(no..
分类:
移动开发 时间:
2016-06-23 22:31:27
阅读次数:
236
// // ViewController.swift // swift的函数和闭包 // // Created by Ninesday on 16/6/23. // Copyright © 2016年 Ninesday. All rights reserved. // import UIKit cl ...
分类:
编程语言 时间:
2016-06-23 18:36:08
阅读次数:
299
// // ViewController.swift // FristSwift // // Created by Evan on 16/6/23. // Copyright © 2016年 Evan. All rights reserved. // import UIKit let SCREEN_ ...
分类:
编程语言 时间:
2016-06-23 15:50:24
阅读次数:
154
如果项目中用了navigationViewController, 那么就应该新建一个uinavigationViewController的子类,然后在这个类里面写上下面的代码,在使用的时候就用自定义的这个navCtr, 就是说需要在根视图里面控制 ...
分类:
其他好文 时间:
2016-06-23 14:20:11
阅读次数:
106
// // ViewController.swift // swift基本语法004 // // Created by Ninesday on 16/6/22. // Copyright © 2016年 Ninesday. All rights reserved. // import UIKit c ...
分类:
编程语言 时间:
2016-06-23 12:26:58
阅读次数:
199