码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
iOS 获取键盘相关信息
一,在需要的地方添加监听[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onKeyboardWillShowNotification:) ...
分类:移动开发   时间:2015-04-10 17:00:56    阅读次数:167
判断代理是否实现了协议方法
1 // 3.1 判断代理是否实现了协议方法2 if ([self.delegate respondsToSelector:@selector(tgFooterViewDidDownloadButtonClick:)]) {3 [self.delegate tgFooterV...
分类:其他好文   时间:2015-04-10 16:58:13    阅读次数:98
CAlayer二
下面学习一下图层的anchorPoint,position属性在ViewDidLoad中self.View添加View1,在View1中添加图层calayer self.view1=[[UIView alloc]init]; self.view1.backgroundColor=[UIColo...
分类:其他好文   时间:2015-04-10 15:27:31    阅读次数:167
自定义导航栏多个按钮
UIToolbar* tools = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 150, 45)]; [tools setTintColor:[self.navigationController.navigationBar tintColo....
分类:其他好文   时间:2015-04-10 15:03:15    阅读次数:190
pushViewController, popViewController, presentViewController, dismissViewController---关于视图跳转的总结
1、[self.view addSubView:view];和[self.window addSubView:view];需要注意,此方法只是把页面(view)加在当前页面(view)上,控制器(viewController)还是原来那个控制器。此时再用[self.navigationColler ...
分类:其他好文   时间:2015-04-10 13:10:39    阅读次数:131
- (NSString *)description
return [NSString stringWithFormat:@"", self.class, self];return [NSString stringWithFormat:@" {answer: %@, icon: %@, title: %@, options: %@}", self.cl...
分类:其他好文   时间:2015-04-09 23:23:45    阅读次数:154
Day11
1 tableView 1.1设置组-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ return self.carGroups.count;} 1.2 设置行-(NSInteger)tableView:(UIT...
分类:其他好文   时间:2015-04-09 21:47:55    阅读次数:120
更改UISearchBar系统背景色方法
1、searchBar.searchBarStyle = UISearchBarStyleMinimal;2、searchBar.backgroundImage = [self imageWithColor:[UIColor clearColor]];- (UIImage *)imageWithCo...
分类:其他好文   时间:2015-04-09 17:02:13    阅读次数:117
iOS疯狂详解之 登陆后淡入淡出更换rootViewController
- (void)restoreRootViewController:(UIViewController *)rootViewController {     typedef void (^Animation)(void);     UIWindow* window = self.window;          rootViewController.modalTransitionStyl...
分类:移动开发   时间:2015-04-09 15:35:02    阅读次数:156
iOS 通过颜色来生成一个纯色图片
//通过颜色来生成一个纯色图片- (UIImage *)buttonImageFromColor:(UIColor *)color{ CGRect rect = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.he....
分类:移动开发   时间:2015-04-09 15:09:18    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!