一,在需要的地方添加监听[[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
下面学习一下图层的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
1、[self.view addSubView:view];和[self.window addSubView:view];需要注意,此方法只是把页面(view)加在当前页面(view)上,控制器(viewController)还是原来那个控制器。此时再用[self.navigationColler ...
分类:
其他好文 时间:
2015-04-10 13:10:39
阅读次数:
131
return [NSString stringWithFormat:@"", self.class, self];return [NSString stringWithFormat:@" {answer: %@, icon: %@, title: %@, options: %@}", self.cl...
分类:
其他好文 时间:
2015-04-09 23:23:45
阅读次数:
154
1 tableView 1.1设置组-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ return self.carGroups.count;} 1.2 设置行-(NSInteger)tableView:(UIT...
分类:
其他好文 时间:
2015-04-09 21:47:55
阅读次数:
120
1、searchBar.searchBarStyle = UISearchBarStyleMinimal;2、searchBar.backgroundImage = [self imageWithColor:[UIColor clearColor]];- (UIImage *)imageWithCo...
分类:
其他好文 时间:
2015-04-09 17:02:13
阅读次数:
117
- (void)restoreRootViewController:(UIViewController *)rootViewController
{
typedef void (^Animation)(void);
UIWindow* window = self.window;
rootViewController.modalTransitionStyl...
分类:
移动开发 时间:
2015-04-09 15:35:02
阅读次数:
156
//通过颜色来生成一个纯色图片- (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