转载自 http://blog.csdn.net/wanggsx918/article/details/252151831、在appDelegate中添加一个切换的方法switchRootViewController: - (BOOL)application:(UIApplication *)...
分类:
移动开发 时间:
2015-05-07 10:02:07
阅读次数:
128
1. 遍历NavigationController栈中的视图XXView *rootViewController = nil;for (UIViewController *VC in self.navigationController.viewControllers) { if ([VC i...
分类:
其他好文 时间:
2015-05-05 21:26:57
阅读次数:
127
一 ,使用autolayout进行相对布局:1.创建新的工程,设置rootviewcontroller(这里不再多说)2.勾选下面(因为我们到下面是使用sizeClass,所以勾选两个):3.这里我创建了一个lable,名称为View1,在这里可以看到设置View1的约束为距上和左侧为0,宽和高设置...
分类:
移动开发 时间:
2015-04-29 14:54:14
阅读次数:
166
刚才调试的时候除了一些小问题,有一段代码要重用 NSString *key = @"CFBundleVersion"; // 取出沙盒中存储的上次使用软件的版本号 NSUserDefaults *defaults = [NSUserDefaults s...
分类:
移动开发 时间:
2015-04-26 22:24:39
阅读次数:
184
UITabBarController使用详解 UITabBarController是IOS中很常用的一个viewController,例如系统的闹钟程序,ipod程序等。UITabBarController通常作为整个程序的rootViewController,而且不能添加到别的container....
分类:
其他好文 时间:
2015-04-22 17:48:46
阅读次数:
140
先下载第三方MBProgressHUD并且引入MBProgressHUD.和MBProgressHUD.m:
// RootViewController.m
// MBProgressDemo
//
// Created by Dubai on 15/4/13.
// Copyright (c) 2015年 Dubai. All rights re...
分类:
移动开发 时间:
2015-04-13 16:50:55
阅读次数:
157
检查层次结构po [[UIWindow keyWindow] recursiveDescription]检查视图控制器(iOS8)po [[[UIWindow keyWindow] rootViewController] _printHierarchy]
分类:
移动开发 时间:
2015-04-11 14:31:15
阅读次数:
186
- (void)restoreRootViewController:(UIViewController *)rootViewController
{
typedef void (^Animation)(void);
UIWindow* window = self.window;
rootViewController.modalTransitionStyl...
分类:
移动开发 时间:
2015-04-09 15:35:02
阅读次数:
156
//
// RootViewController.m
// 时间戳在走并且显示Demo
//
// Created by Dubai on 15/4/2.
// Copyright (c) 2015年 Dubai. All rights reserved.
//
#import "RootViewController.h"
...
分类:
移动开发 时间:
2015-04-02 11:43:17
阅读次数:
158
//// RootViewController.m// 头部滚动展示视图// 头部滚动广告视图#define SCREEN_SIZE [UIScreen mainScreen].bounds.size#define KImageCnt 5#define KImage_H 250#import "Ro...
分类:
移动开发 时间:
2015-04-01 21:41:24
阅读次数:
164