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
如果没有是storyboard进行界面设计,在ios7之后会遇到rootviewcontroller的view被navigationbar遮盖的问题,其实很好解决- (void)viewDidLoad { [super viewDidLoad]; if( ([[[UIDevice currentDe... ...
分类:
其他好文 时间:
2016-06-22 22:07:19
阅读次数:
170
一,效果图。 二,工程图。 三,代码。 RootViewController.h #import <UIKit/UIKit.h> @interface RootViewController : UIViewController <UITextViewDelegate> { UITextView *p ...
分类:
其他好文 时间:
2016-06-22 09:23:09
阅读次数:
130
1.新建UIWindow 程序崩溃 报无根控制器错误 Xcode7环境下,新建UIWindow需添加rootViewController 2.新建UIWindow后 statusBar消失 Info.plist文件 新增项View controller-based status bar appear ...
一,效果图。 二,代码。 RootViewController.m - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. UIImageView *imageView ...
分类:
其他好文 时间:
2016-06-12 09:30:15
阅读次数:
143
当使用xib加载控制器的时候,报如下错误: 原因: 控制器与xib没有关联 解决办法: 1.选择xib文件 2.控制器类关联 3.视图关联(拖线) ...
分类:
其他好文 时间:
2016-06-08 19:01:06
阅读次数:
470
一,效果图。 二,代码。 RootViewController.m - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. //电话号码 UILabel *telLab ...
分类:
其他好文 时间:
2016-06-08 09:13:28
阅读次数:
149
#import "RootViewController.h"#import "Masonry.h" @interface RootViewController () @end @implementation RootViewController - (void)viewDidLoad { [supe ...
分类:
其他好文 时间:
2016-06-04 10:38:20
阅读次数:
220
self.window = UIWindow(frame:UIScreen.mainScreen().bounds) let rootVC : RootViewController = RootViewController() let navi = UINavigationController(ro ...
分类:
移动开发 时间:
2016-06-01 21:20:38
阅读次数:
126
一,效果图。 二,工程图。 三,代码。 RootViewController.h #import <UIKit/UIKit.h> @interface RootViewController : UIViewController <UITableViewDataSource,UITableViewDe ...
分类:
其他好文 时间:
2016-05-31 10:35:02
阅读次数:
96