直接上代码: // // AppDelegate.m // // #import "AppDelegate.h" #import "RootViewController.h" #import "FirstViewController.h" #import "SecnodViewController. ...
分类:
其他好文 时间:
2017-07-23 13:30:16
阅读次数:
191
RootViewController.m - (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor greenColor]; //创建显示文字的label UILabel *label = [[UI ...
分类:
其他好文 时间:
2017-07-05 17:15:04
阅读次数:
118
创建 UINavigationController(导航控制器) 在AppDelegate.m中创建 // 创建一个普通控制器 RootViewController *rootVC = [[RootViewController alloc] init]; // UINavigationControl ...
分类:
其他好文 时间:
2017-07-01 10:57:04
阅读次数:
207
代码: RootViewController.h RootViewController.m ...
分类:
移动开发 时间:
2017-06-07 10:07:29
阅读次数:
245
RootViewController.m #import "ModalViewController.h" @interface RootViewController () @end @implementation RootViewController { ModalViewController *m ...
分类:
其他好文 时间:
2017-06-06 18:23:59
阅读次数:
112
一,效果图。 二,工程图。 三, 代码。 RootViewController.h #import <UIKit/UIKit.h> //添加HPGrowingTextView头文件 #import "HPGrowingTextView.h" @interface RootViewController ...
分类:
移动开发 时间:
2017-05-22 09:26:51
阅读次数:
231
主要改动 RootViewController.mm 的 supportedInterfaceOrientations 方法 1.四个方向 UIInterfaceOrientationMaskAll 2.三个方向(除了屏幕倒着全部都能够旋转) UIInterfaceOrientationMaskAl ...
分类:
其他好文 时间:
2017-05-15 18:31:42
阅读次数:
136
一、RootViewController: #import "RootViewController.h" #import "SecondViewController.h" @interface RootViewController () { UILabel *_myLabel; } @end @im ...
分类:
其他好文 时间:
2017-05-07 15:40:20
阅读次数:
181
RootViewController.m - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bun ...
分类:
其他好文 时间:
2017-04-27 10:30:13
阅读次数:
137
1.新建RootViewController类 // // RootViewController.swift // UITableViewDemo // // Created by 赵超 on 14-6-21. // Copyright (c) 2014年 赵超. All rights reserv ...
分类:
编程语言 时间:
2017-04-25 21:32:33
阅读次数:
342