初始化时候的效果图:点击单元格后的效果图:项目目录:plist截图:RootViewController.h#import @interface RootViewController : UIViewController{ UITableView * _tableView; NSMuta...
分类:
其他好文 时间:
2014-10-20 21:18:39
阅读次数:
270
从iOS7开始,系统提供了2种管理状态栏的方式
通过UIViewController管理(每一个UIViewController都可以拥有自己不同的状态栏)
通过UIApplication管理(一个应用程序的状态栏都由它统一管理)
在iOS7中,默认情况下,状态栏都是由UIViewController管理的,UIViewController实现下列方法就可以轻松管理状态栏的可见性和样式
状...
分类:
移动开发 时间:
2014-10-20 19:31:45
阅读次数:
155
navigation同理:-(UIViewController*)viewController{for(UIView*next=[selfsuperview];next;next=next.superview){UIResponder*nextResponder=[nextnextResponder];if([nextResponderisKindOfClass:[UIViewControllerclass]]){return(UIViewController*)nextResponder;}}retur..
分类:
其他好文 时间:
2014-10-20 02:14:03
阅读次数:
153
#ViewController.m- (void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; UIViewController *rootView = [[UIViewController alloc] init.....
分类:
移动开发 时间:
2014-10-20 02:02:53
阅读次数:
212
刚开始进来的时候的效果图:点击右侧按钮时候效果图:RootViewController.h#import @interface RootViewController : UIViewController{ UIButton * leftButton; UIButton * rightBu...
分类:
其他好文 时间:
2014-10-18 12:36:15
阅读次数:
233
效果图:点击搜索后的效果图:RootViewController.h#import @interface RootViewController : UIViewController@endRootViewController.m- (void)viewDidLoad{ [super viewD...
分类:
其他好文 时间:
2014-10-18 12:24:45
阅读次数:
211
首页展示效果图:点击单元格时候的效果图:文件目录:ChooseCityViewController.h#import @interface ChooseCityViewController : UIViewController{ NSMutableArray * dataArray; U...
分类:
其他好文 时间:
2014-10-18 10:55:27
阅读次数:
250
//
// ViewController.swift
// JieParseJson
//
// Created by jiezhang on 14-10-5.
// Copyright (c) 2014年 jiezhang. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
...
分类:
编程语言 时间:
2014-10-17 16:56:57
阅读次数:
253
navigationController在pop时,指定pop到某个页面,这个页面要在navigationController栈里有的for(UIViewController*tempinself.navigationController.viewControllers){if([tempisKindOfClass:[需要退到哪个类类名class]]){[self.navigationControllerpopToViewController:tem..
分类:
其他好文 时间:
2014-10-17 15:44:40
阅读次数:
127
效果图:.h#import @interface RootViewController : UIViewController{ UITableView *mTableView;}@end.m- (void)viewDidLoad{ [super viewDidLoad]; // D...
分类:
其他好文 时间:
2014-10-17 13:39:00
阅读次数:
166