分类 iOS 中的文章

Unknown Class **** in Interface Builder file

I added a UIView xib file using the root class of MyView. I created it in the wrong place and so moved it in the project. Same project just a different folder/group. I then had a problem when running saying… Unknown Class MyView in Interface Builder file I couldn't work out what was wrong so I have now deleted the files both from the project and from the directory. I've……

阅读全文

文字上添加删除线

NSString * str = @"ABCDEFG HIJKLMN"; UILabel * aLab = [[UILabel alloc]initWithFrame:CGRectMake(10, 100, 300, 300)]; aLab.text = str;NSMutableAttributedString * testAttriString = [[NSMutableAttributedString alloc] initWithString:str]; [testAttriString addAttribute:NSStrikethroughStyleAttributeName value:[NSNumber numberWithInt:NSUnderlineStyleSingle] range:NSMakeRange(0, testAttriString.length)]; aLab.attributedText = testAttriString;[self.view addSubview:aLab];……

阅读全文

App Store上架前的准备

一、制作ipa发布包 1、所需装备 1)一个distribution发布版证书 2)Xcode,iTunes,完成的项目,这都不用说了 开始配置Xc……

阅读全文

iOS 开发error/debug

error:property with ‘retain(strong)’ attribute must be of object type cause: 没有包含相应地头文件,造成变量引用错误,指针指向未知……

阅读全文

Xcode如何添加pch文件

Xcode6.0之后去掉了Precompile Prefix Header 文件,主要原因可能在于Prefix Header大大的增加了Build的时间。没有了Pref……

阅读全文

iOS端App的icon和Launch Image规格实时更新

<th scope="col" class="TableHeading_TableRow_TableCell" style="background-color: rgb(249, 249, 249); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-color: rgb(233, 233, 233); margin: 0px; outline: 0px; vertical-align: baseline; font-weight: 400;"> <p class="para" style="background-color: transparent; border: 0px; font-size: 1.4em; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding-top: 0px; padding-bottom: 0px; vertical-align: baseline; color: rgb(65, 65, 65); line-height: 20.299999237060547px; word-break: break-word; min-width: 50px;"> iPhone 6 Plus (@3x) </p> </th> <th scope="col" class="TableHeading_TableRow_TableCell" style="background-color: rgb(249, 249, 249); border-top-width: 0px;……

阅读全文

Xcode如何添加pch文件

Xcode6.0之后去掉了Precompile Prefix Header 文件,主要原因可能在于Prefix Header大大的增加了Build的时间。没有了Pref……

阅读全文

iOS如何判断应用是否开启摄像头权限

NSString* mediaType = AVMediaTypeVideo; AVAuthorizationStatusauthorizationStatus = [AVCaptureDeviceauthorizationStatusForMediaType:mediaType]; if(authorizationStatus == AVAuthorizationStatusRestricted|| authorizationStatus == AVAuthorizationStatusDenied) { UIAlertController* alertC = [UIAlertControlleralertControllerWithTitle:@"摄像头……

阅读全文

iOS NSString

字符串处理:截取字符串、匹配字符串、分隔字符串 1.截取字符串 NSString*string=@"sdfsfsfsAdfsdf"; string = [string substringToIndex:7];//截取下标7之后的字符串 NSL……

阅读全文