MainViewController.h
@interface RootViewController : UIViewController
@property(nonatomic, retain)NSDictionary *dic;
@property(nonatomic, retain)NSArray *allKeys;
MainViewController.m
- (void)view...
分类:
其他好文 时间:
2014-10-30 11:52:11
阅读次数:
188
RootViewController.h
@interface RootViewController : UIViewController {
BOOL Close[15]; //用于存放每一组的收起展开状态 YES 是收起 NO是展开
UITableView *_tableView;
}
@property(nonatomic, retain)NSArray *da...
分类:
其他好文 时间:
2014-10-30 11:50:52
阅读次数:
113
设置带有导航栏的根视图控制器
RootViewController.h
@interface RootViewController : UIViewController
{
UITableView *_tableView;
}
@property(nonatomic, retain)NSArray *data; //存放原本的数据
@property(nonatomic, reta...
分类:
其他好文 时间:
2014-10-30 11:50:28
阅读次数:
182
UIViewController* modalController = [[UIViewController alloc]init];modalController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;modalCon...
分类:
移动开发 时间:
2014-10-30 10:49:58
阅读次数:
2680
解决UITableView在iOS7中UINavigationController里的顶部留白问题出现问题时候的截图:源码:用到的类:UIViewController+TitleTextAttributes.h 与UIViewController+TitleTextAttributes.m//// ...
分类:
移动开发 时间:
2014-10-29 23:49:11
阅读次数:
322
细数AutoLayout以来UIView和UIViewController新增的相关API – UIViewController篇UILayoutSupport@property(nonatomic,readonly,retain)idtopLayoutGuideNS_AVAILABLE_IOS(7...
模态:模态视图从屏幕下方滑出来,完成的时候需要关闭这个模态视图,如果不关闭,就不能做别的事情,必须有响应处理的含义。
主视图控制器---》模态视图控制器。主视图控制器与模态视图控制器之间为父子关系。
UIViewController类中,主要有以下两个方法:
presentViewController:animated:completion 呈现模态视图
dismissViewContr...
分类:
移动开发 时间:
2014-10-29 19:21:57
阅读次数:
187
RootViewController.h
#import "ModalViewController.h"
@interface RootViewController : UIViewController
RootViewController.m
@interface RootViewController ()
@end
@implementation RootViewContro...
分类:
其他好文 时间:
2014-10-29 14:57:57
阅读次数:
190
插入和删除时序:
client: setEditing: animated: -----> 设定进入表视图
表视图---->委托: ()tableView:editingStyleForRowAtIndexPath:方法进行单元格编辑图标的设置
方法进行单元格编辑图标的设置
表视图---->数据源:()tableView:commiEditingStyle:forRowAtIndexPat...
分类:
移动开发 时间:
2014-10-27 21:23:02
阅读次数:
298
看到网上都说 在ios7之后要这样设置
首先,需要在Info.plist配置文件中,增加键:UIViewControllerBasedStatusBarAppearance,并设置为YES;
然后,在UIViewController子类中实现以下两个方法:
- (UIStatusBarStyle)preferredStatusBarStyle
{
return UISta...
分类:
移动开发 时间:
2014-10-27 17:51:36
阅读次数:
174