- 博客(11)
- 资源 (3)
- 收藏
- 关注
原创 iOS Widget快速浏览页面的创建以及证书添加标识符
创建 如下图选择 NEXT填好 Product Name 文件名选择 Finish 创建好了- (void)viewDidLoad { [superviewDidLoad]; // 打开时的高度 self.preferredContentSize =CGSizeMake([UIScreen
2016-12-28 19:25:19 706
原创 iOS collectionView返回顶部
// 方法一[_collectionViewscrollToItemAtIndexPath:[NSIndexPathindexPathForRow:0inSection:0] atScrollPosition:UICollectionViewScrollPositionNone
2016-12-27 11:38:25 2040
原创 iOS tableView与collectionView的样式切换以及间距问题处理
#define ScreenWidth ([UIScreen mainScreen].bounds.size.width)#define Screenheight ([UIScreen mainScreen].bounds.size.height)@property (weak,nonatomic) IBOutletUICollectionView *collectionV
2016-12-27 11:02:22 1314
原创 iOS tableView滚动至第一行
// 方法一[_tableViewsetContentOffset:CGPointMake(0,0)animated:NO];// 方法二[weakself.tableViewscrollToRowAtIndexPath:[NSIndexPathindexPathForRow:0inSection:0]atScrollPosition:UITableViewScrollPosit...
2016-12-23 15:47:13 2183
原创 iOS 去掉tabBar.item的角标
[self.tabBarController.tabBar.itemsobjectAtIndex:2].badgeValue =nil;
2016-12-23 12:49:45 1885
原创 iOS 页面跳转后去掉返回按钮和返回手势
//去掉返回按钮 self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@""style:(UIBarButtonItemStyleDone)target:selfaction:nil];// 去掉返回手势if ([self.navigationCo
2016-12-21 16:51:19 2407
原创 iOS 键盘遮挡输入框解决方案
- (void)addNotification {[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];[[NSNotificationCenter
2016-12-21 14:30:28 2522
原创 select a method for export 各项的意思
1.Save for iOS App Store Deployment //保存到本地 准备上传App Store 或者在越狱的iOS设备上使用2.Save for Ad Hoc Deployment//保存到本地 准备在账号添加的可使用设备上使用(具体为在开发者账户下添加可用设备的udid)//该app包是发布证书编译的3.Save for Enterprise Depl
2016-12-19 15:00:54 1576
原创 iOS NSUserDefaults清空所有内容
// 清空NSUserDefaults所有内容NSUserDefaults *defatluts = [NSUserDefaultsstandardUserDefaults];NSDictionary *dics = [defatlutsdictionaryRepresentation];for(NSString *keyin [dics allKeys])
2016-12-14 13:31:06 1373
原创 完美解决Xcode8.0之后版本NSLog打印输出不全
/** * 完美解决Xcode NSLog打印不全的宏 亲测目前支持到8.2bate版 */#ifdef DEBUG//#define NSLog(format, ...) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE_...
2016-12-02 11:16:53 5958
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人