- 博客(8)
- 收藏
- 关注
原创 13年iOS笔记小结
#pragma mark –内容(标记方法的方法)蓝色弹窗 UIAlertView * Alert =[[UIAlertView alloc]initWithTitle:@"提示"message:@"请输入用户名和密码" delegate:self cancelButtonTitle:@"取消"otherButtonTitles:@"确定", nil]; [
2014-05-09 10:28:48 457
原创 iOS自下而上弹出动画
弹出 [self.navigationController presentModalViewController:baNavigation animated:YES];返回 [self dismissModalViewControllerAnimated:YES];
2014-05-09 10:24:10 1046
原创 非ARC中添加ARC的设置
选中工程->TARGETS->相应的target然后选中右侧的“Build Phases”,向下就找到“Compile Sources”了。如何在未使用arc的工程中引入一个使用了arc特性的文件:对相应的文件添加:-fobjc-arc参数
2014-05-09 10:21:42 412
原创 iOS 修改搜索控件canel
- (void)searchBarTextDidBeginEditing:(UISearchBar *)hsearchBar{ [self.view bringSubviewToFront:searchTb]; searchBar.showsCancelButton = YES; for(id cc in [searchBar subviews]) {
2014-05-09 10:20:18 466
原创 tableView 默认显示某行
[utv setContentOffset:CGPointMake(0, (NowRow-1)*50)];这里通过
2014-05-09 10:19:02 611
原创 UIView随手势拖动
- (void) handleSwipe:(UIPanGestureRecognizer*) recognizer{ CGPoint translation = [recognizer translationInView:self.view]; recognizer.view.center = CGPointMake(recognizer.vie
2014-05-09 10:16:09 1885
原创 iOS旋转动画
CGAffineTransform transform; //设置旋转度数 transform = CGAffineTransformRotate(Btn37.transform,M_PI); //动画开始 [UIView beginAnimations:@"rotate" context:nil ];
2014-05-09 10:11:41 474
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人