摘要:
UIColor* color = [UIColorcolorWithRed:(x/255.0f)green:( y/255.0f)blue:(z/255.0f)alpha:1.0f];x,y,z的值参见RGB颜色表http://www.th7.cn/Program/IOS/201411/320219... 阅读全文
posted @ 2015-06-30 17:29
tongyuling
阅读(628)
评论(0)
推荐(0)
摘要:
//返回指定的根视图 [self.navigationControllerpopToViewController:[self.navigationController.viewControllersobjectAtIndex:0]animated:YES]; 阅读全文
posted @ 2015-06-30 17:28
tongyuling
阅读(510)
评论(0)
推荐(0)
摘要:
UITextField *textField = [[UITextField alloc] init]; UIImageView *imgv=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"right.png"]]; textFiel... 阅读全文
posted @ 2015-06-30 17:27
tongyuling
阅读(318)
评论(0)
推荐(0)
摘要:
UIStoryboard*stroy = [UIStoryboardstoryboardWithName:@"Main"bundle:nil]; ViewController* view=[stroyinstantiateViewControllerWithIdentifier:@“view"]; ... 阅读全文
posted @ 2015-06-30 17:26
tongyuling
阅读(398)
评论(0)
推荐(0)
摘要:
当一个UITabbarController管理多个UINavigationController的时候,我们又从这每一个UINavigationController中push一个ViewController的时候,如果不作处理,就会出现推出来的ViewController同样会显示TabBar,怎么样... 阅读全文
posted @ 2015-06-30 17:25
tongyuling
阅读(309)
评论(0)
推荐(0)
摘要:
一,重力与碰撞//创建物理仿真器 UIDynamicAnimator*animator = [[UIDynamicAnimatoralloc]initWithReferenceView:self.view]; self.animator= animator;//强引用animator,否则代... 阅读全文
posted @ 2015-06-30 17:24
tongyuling
阅读(207)
评论(0)
推荐(0)
摘要:
1. 2进制转10进制NSString* nb =@"110000000000000000000000000000010100000000100000";longnice =strtol([nbUTF8String],NULL,2);NSLog(@"nict==%ld", nice);2. 1... 阅读全文
posted @ 2015-06-30 17:22
tongyuling
阅读(445)
评论(0)
推荐(0)
摘要:
//确保第一区域紧贴导航栏- (void)viewWillAppear:(BOOL)animated{ CGRect frame = _tableView.tableHeaderView.frame; frame.size.height = 1; UIView *headerView = [[... 阅读全文
posted @ 2015-06-30 17:21
tongyuling
阅读(195)
评论(0)
推荐(0)
摘要:
1.添加delegate,2.设置委托,3.实现以下3个方法://开始编辑输入框的时候,软键盘出现,执行此事件-(void)textFieldDidBeginEditing:(UITextField*)textField{ CGRectframe = textField.frame; intoffs... 阅读全文
posted @ 2015-06-30 17:20
tongyuling
阅读(237)
评论(0)
推荐(0)
摘要:
1.获取系统当前的亮度的值self.value=[UIScreenmainScreen].brightness;2.改变亮度值[[UIScreenmainScreen]setBrightness:self.value+0.3]; 阅读全文
posted @ 2015-06-30 17:19
tongyuling
阅读(429)
评论(0)
推荐(0)