
iOS
端_木
胜利不是最后的结局,失败也不是最终的宿命,重要的是勇气。
展开
-
LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 “(null)“
LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x15dde658 ed2a1267 ab2496d7 34f186ad ... ec431c65 02d68f35 }.原创 2021-08-25 10:11:10 · 3286 阅读 · 0 评论 -
解决第三方类库无法通过armv7s编译的方法
一、 很多项目使用>=4.5 version 的Xcode无法,发现很多第三方库,比如weixin SDK。1. 最简单的解决方案就是等这些第三方库尽快更新支持ios6 armv7s 的新版SDK.2.可以尝试如下两种方法解决无法通过编译的问题:1.选中项目,然后选中 TARGETS 项目,找到Build Settings 的页面,搜索: Build Active Ar原创 2013-05-31 06:48:55 · 1763 阅读 · 0 评论 -
xcode4.x修改工程名称
xcode4.x修改工程名称,已经测试通过,具体步骤如下:1:按照下图打开2:在prject name处修改想要的名称,然后回车,则会出现下面窗口:点击rename,即可3:修改scheme的名称,按照上述方法修改后,如下图,选择manage scheme,然后选择添加scheme即可另:app打包文件中最好不要有与app名称转载 2013-06-08 18:16:44 · 1011 阅读 · 0 评论 -
取消Xcode 4.5以上版本上面的 Constraints
选中 xib文件,在右侧第一项(Identity and type)的Interface Builder Document 中取消 Use AutoLayout 选项。原创 2013-05-31 17:15:28 · 1131 阅读 · 0 评论 -
UILabel-使用总结
1.初始化一个UILabelUILabel *lblType=[[UILabel alloc] initWithFrame:CGRectMake(90, 37, 30, 18)]; [lblType setBackgroundColor:[UIColor clearColor]]; [lblType setFont:[UIFont转载 2013-06-13 11:20:18 · 1363 阅读 · 0 评论 -
The identity 'iPhone Developer: XXX doesn't match any valid certificate/private key
[BEROR]Code Sign error: The identity 'iPhone Developer: XXX doesn't match any valid certificate/private key pair in the default keychain当我将第三方库,或者别人的代码集成到自己的项目中时,报了如上的错误!原因很简单,就是转载 2013-06-13 11:27:23 · 1341 阅读 · 0 评论 -
Code Sign error: Provisioning profile '6805769A-5085-4BE7-B9D1-2859CD2CBE9E' can't be found
一、了解错误信息错误信息翻译:代码标识错误:配置文件项“XXX-XXX-XXX”没有找到。二、错误原因因为,我们把每个资源(图片,xib,.h, .m, .a)加入到项目中后,将会在项目中被分配一个唯一的标识,来标记该资源。每个“XXX-XXX-XXX”标识:如 '6805769A-5085-4BE7-B9D1-2859CD2CBE9E'就是某个资源的标原创 2013-06-13 11:29:50 · 1604 阅读 · 0 评论 -
把微信iOS版SDK中的静态 .a 文件合并成一个真正全兼容的静态文件
微信的iOS版SDK下载下来之后,我们可以看到有四个文件,两个头文件和两个 .a 静态库文件。为了在使用时候更方便,我们就给这两个文件做了一下合并。首先,我们可以用file命令看到,其中 libWeChatSDK.a 包含了 armv6, armv7, i386 三种架构,而 libWeChatSDK_armv7_armv7s.a 则包含了 armv7, armv7s, i386原创 2013-06-03 11:59:27 · 2442 阅读 · 1 评论 -
Unbalanced calls to begin/end appearance transitions for <UIVewController XX>
引起的原因是由于动画没有完成造成的,由于上个uivewcontroller的动画没做完,导致下一个的页面无法顺利压栈,这个只需要上一个页面返回的时候不要做动画就可以了。 [selfpresentModalViewController:imagePickeranimated:YES];这句话的YES,改为NO原创 2013-06-06 10:10:25 · 1010 阅读 · 0 评论 -
NSString filepath Convert to NSUrl filepath(文件路径 NSString和NSUrl转化)
/file path NSString *imgPath = @"/Users/testor/Library/Application Support/iPhone Simulator/User/Applications/917E8D55-82A7-4214-8ED1-8EA54B211FB0/Documents/temp.png"; /path to url NSUR原创 2013-06-06 14:43:20 · 4852 阅读 · 0 评论 -
presentModalViewController 的动画效果
WorkBrowseViewController *workBrowseVC = [[WorkBrowseViewControlleralloc]initWithNibName:@"WorkBrowseViewController"bundle:nil]; workBrowseVC.modalTransitionStyle =UIModalTransitionStylePartialCu原创 2013-06-08 15:41:37 · 990 阅读 · 0 评论 -
NSMutableArray到NSData的转化的问题
NSArray *array = [NSArray arrayWithObjects:@"1", @"2" ,@"3" ,@"4" ,@"5" ,nil];02 NSData *sendData=[NSKeyedArchiver archivedDataWithRootObject:array];转载 2013-06-08 16:42:38 · 3639 阅读 · 0 评论 -
iOS开发---UI/UE设计篇
什么样的登录框才是优秀的?如果猛然抓个设计师问「你觉得登录框还有哪些可以改进的点」,得到的回答应该是长时间的沉默,当然也包括我。 http://www.cocoachina.com/macdev/uiue/2013/0218/5683.html?1363585914 移动应用的空状态界面设计空状态是指移动应用界面在没有内容或数据时呈现出的状态。长久以来,空状态界面一直是被忽视的转载 2013-06-09 10:33:39 · 1237 阅读 · 0 评论 -
苹果开发者文档更新(5.20-6.4)
Using UIImagePickerController to Select Pictures and Take Photos更新至使用ARC和storyboards编译要求:Xcode 4.6及以上版本,iOS SDK 6.0及以上版本运行要求:iOS 6.0及以上版本 Simple UISearchBar with State Res转载 2013-06-09 10:25:39 · 1112 阅读 · 0 评论 -
Code Sign error: A valid provisioning profile matching the application's Identifier 'f.CamTes'
Code Sign error: A valid provisioning profile matching the application's Identifier 'f.CamTes' could not be found比较常规的有:1、重新下载Provision Profile,然后将之前的Profile删除,再重新导入;2、单击工程文件,然后单击TARGETS翻译 2013-07-11 19:48:51 · 942 阅读 · 0 评论 -
Could not change executable permissions on the application.
这个总是是直接上一个问题而来的,修改完证书后,出现了Could not change executable permissions on the application.这个提示原因:在手机里已经有一个使用同样bundle identifier的应用;最直接的解决方法:删掉那个应用后在build。原创 2013-07-11 19:51:11 · 907 阅读 · 0 评论 -
UIView的动画总结
在4.0版本之前begin/commit的写法如下: [UIView beginAnimations:@"View Flip" context:nil]; //动画持续时间 [UIView setAnimationDuration:1.25]; //设置动画的回调函数,设置后可以使用回调方法 [UIView setAnimationDelegate:se原创 2013-07-30 16:28:11 · 954 阅读 · 0 评论 -
UIMenuController的事件监听
[[NSNotificationCenter defaultCenter] addObserver:selfselector:@selector(willHideEditMenu:)name:UIMenuControllerWillHideMenuNotificationobject:nil];UIKIT_EXTERN NSString *const UIMenuC原创 2013-07-22 15:45:04 · 5440 阅读 · 0 评论 -
时间转换
- (NSString *)dateFromString:(NSString *)dateString{ NSDateFormatter *dateFormat = [[NSDateFormatteralloc] init]; [dateFormat setDateFormat:@"yy-MM-dd HH:mm:ss"]; NSDate *date = [原创 2013-07-27 12:11:29 · 882 阅读 · 0 评论 -
UIActionSheet更新数据的方法
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex;这个方法是最常用的现在的问题是在取消actionSheet时让数据显示最新的数据,可以使用下面的方法的方法- (void)actionSheet:(UIActionSheet *)actionSheet原创 2013-07-29 19:04:08 · 1056 阅读 · 0 评论 -
自定义UITableView的Section的title的样式
设置Footer section- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{ return 21.0f;}-(UIView *)tableView:(UITableView *)tableView viewForFooterInSec原创 2013-08-07 11:22:25 · 1228 阅读 · 0 评论 -
IOS 页面跳转的数据传递方式
1、使用SharedApplication,定义一个变量来传递.2、使用文件,或者NSUserdefault来传递3、通过一个单例的class来传递4、通过Delegate来传递5、通过NSNotificationCenter来传递原创 2013-08-28 17:38:53 · 1299 阅读 · 0 评论 -
分享一个开源在线工具
开源在线工具地址:http://www.ostools.net/原创 2013-08-29 10:14:36 · 1484 阅读 · 0 评论 -
UITableView和UITableViewCell的几种样式
一、系统自己的UITableView样式有两种:1.UITableViewStylePlain:Plain样式的是方形的,充满你给的view.frame坐标。2.UITableViewStyleGrouped:Grouped样式主要是以圆角形显示,支持分组显示。二、系统自己的UITableViewCell样式有四种:1.UITableViewCellStyleD原创 2013-09-06 12:26:51 · 4398 阅读 · 0 评论 -
iOS 开发之设置UIButton(温故知新)
有些时候我们想让设置UIButton的title居左对齐btn.textLabel.textAlignment = UITextAlignmentLeft是没有作用的,我们需要设置btn.contentHorizontalAlignment = UIControlContentHorizonAlignmentLeft;但是问题又出来,此时文字会紧贴到做边框,我们可以原创 2013-09-07 09:12:02 · 1105 阅读 · 0 评论 -
苹果更新App Store审核指南
苹果今天更新了App Store审核指南。 基于最近6个月生效的各种政策,苹果修订了App Store审核指南部分内容并新增了一些规则。 最值得注意的是,苹果此次更新的App Store审核指南与即将发布的教育政策更改和今年早些时候扩展的儿童在线隐私保护法案(COPPA)有关。 儿童在线隐私保护法案(COPPA)新规定阻止开发者不经家长同意收集13岁转载 2013-09-03 20:15:19 · 1264 阅读 · 0 评论 -
固定cell.imageView.image的大小
固定cell.imageView.image的大小原创 2013-09-09 23:58:13 · 8963 阅读 · 0 评论 -
在UILable上添加点击事件
朋友问怎么给UILable像button一样做点击事件,顺便写了下,如下 :第一步,将UILable的userInteractionEnabled值设置为YES,这样才能触发点击事件。第二步,通过TapGestureRecognize注册事件。代码如下:- (void)viewDidLoad{ [superviewDidLoad];原创 2013-09-04 11:50:18 · 1604 阅读 · 0 评论 -
直接解压出ipa包图片资源
直接解压出ipa包图片资源下载地址:http://download.youkuaiyun.com/detail/quanqinayng/6207243原创 2013-09-04 10:01:20 · 1739 阅读 · 0 评论 -
启用锁屏和禁止解锁代码
[UIApplication sharedApplication].idleTimerDisabled=YES;不自动锁屏[UIApplication sharedApplication].idleTimerDisabled=NO;自动锁屏原创 2013-09-04 13:26:37 · 2165 阅读 · 1 评论 -
'Invalid parameter not satisfying: date
参考http://stackoverflow.com/questions/572132/nsdate-and-nsdateformatter-issues这篇文章,在结合自己遇到的问题,是自己转换格式不统一造成的错误。原创 2013-09-12 11:57:55 · 5599 阅读 · 0 评论 -
iOS 7正式版开放升级 你或许想了解的几个问题
http://iphone.duowan.com/1309/243494144597.htmlhttp://product.pconline.com.cn/itbk/sjtx/ios7/1306/3340380.html原创 2013-09-21 21:20:24 · 977 阅读 · 0 评论 -
Multi Layer Navigation
介绍: 实现网易新闻app/新浪微博app中手指右滑屏幕返回上一层视图的交互。利用UINavigationControler组织多层,即也可以用导航栏(UINavigationBar)的返回按钮返回上一层。支持视图上有scrollview等页面。 参考:http://code4app.com/ios/Multi-Layer-Navigation/516ce1f76803fa5转载 2013-10-09 13:55:44 · 1058 阅读 · 0 评论 -
SQLite的版本迁移FMDB适配器为iPhone
https://github.com/mocra/fmdb-migration-manager#readme原创 2013-09-24 17:07:36 · 2138 阅读 · 0 评论 -
phoneGap 静态页面中简单的数据传递
主要采用方式:window.localStorage.setItem("xxxx","");window.localStorage.getItem("xxxx");原创 2013-11-18 09:26:14 · 1098 阅读 · 0 评论 -
phonegap-2.9.0 ios配置安装详细教程
第一步,下载xcode,下载phonegap下载xcode:https://developer.apple.com/xcode/下载phonegap:http://phonegap.com/download/#第二步:找到下载的phonegap的zip文件,解压,然后找到phonegap-2.9.0>lib> ios 文件夹,打开 ios->bin->create文件.原创 2013-11-05 10:10:47 · 4105 阅读 · 0 评论 -
ShareSdk(IOS)使用心得
1,首先到www.sharesdk.cn去申请注册,添加应用会得一个Appkey;2.去下载最新的sdk,然后按照官方文档一步步操作。在操作时注意以下几个地方:1.添加QQ好友平台分享,在plist文件里增加URL Scheme时,需要把申请QQ的key转换成16进制,16进制应该大写;2,在AppDelegate中注册各个平台信息时需要注意微信这个平台,[ShareSDKconnec原创 2013-11-04 16:39:01 · 2096 阅读 · 0 评论 -
jQuery Mobile动态刷新页面样式
在网上查找资料看到刷新listview 的方法 :$(".ui-ihimee-content").listview("refresh"); 在程序中加入不起效果,现在用:$(".ui-ihimee-content").trigger("create"); 可以实现。现在做下总结:1:对于listview:$(".ui-ihimee-content").listview("ref原创 2013-11-19 10:04:36 · 1844 阅读 · 0 评论 -
jQuery Mobile动态加载ListView
1原创 2013-11-19 10:30:26 · 2262 阅读 · 0 评论 -
iOS开发 UIWebView JS交互
1.在OC修改/获取网页内容的方法OC提供了Api,调用网页中的JS方法:stringByEvaluatingJavaScriptFromString;通过这个方法,可以获取网页的URL,Tilte,插入JS脚本。测试代码:[objc] view plaincopy-(void)webViewDidFinishLoad转载 2013-11-21 10:15:38 · 1908 阅读 · 0 评论