![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
objective-c
文章平均质量分 54
幼兒園滑滑梯
奋斗的一生
展开
-
IOS 模拟器未能安装此应用程序
在新建一个工程中,遇到了这个问题,记录一下,大家共勉。 在填Deployment Target的时候无意中多输入了一个s,所以后来在模拟器上运行的时候会报错。 解决办法: 删除掉该工程的derived data,在organizer中删除。删掉后就能正常运行了。 在网上看到的其他的解决方案: 方法原创 2014-03-26 22:55:13 · 718 阅读 · 0 评论 -
iOS应用的Apple ID
iOS应用的Apple ID为苹果公司为我们的应用程序自动生成的ID。在跳转评论里需要用到。 暂时在这里记录一下。后续还会进行拓展。 1. 首先进入 developer.apple.com 创建一个app id,如果没有先创建app id,直接跳转第2步:则会收到如下提示: 2. 再到itunesconnect.apple.com中创建一个应用,选原创 2016-02-24 17:44:49 · 514 阅读 · 0 评论 -
CLLocationManager无法定位问题,CLLocationManagerDelegate不调用didUpdateLocations
CLLocationManager正确使用 1. 代码片段@interface BiLocationEngine()CLLocationManagerDelegate>@end- (void)startLocation{ CLLocationManager * locationManager = [[CLLocationManager alloc] init];//创原创 2016-02-05 02:25:22 · 625 阅读 · 0 评论 -
关于 dismissviewcontrolleranimated 的延迟问题
在写一功能模块时发现一个问题:掉用controller的dismissviewcontrolleranimated时,会有几秒的延迟,才会dismiss。 代码是这样写的: 在ControllerA中present另外一个ControllerB的代码:- (void)onNavBarShareBtnClick:(id)sender { UIStoryboar原创 2016-02-13 02:09:18 · 439 阅读 · 0 评论 -
修改UITextField中placeholder颜色
在UITextField中没有属性设置placeholder的颜色,在网上找了一下,有两个方法能修改颜色。 方法一: 比较简单的一句代码搞定:[_textField setValue:[UIColor grayColor] forKeyPath:@"_placeholderLabel.textColor"]; 方法二: 继承UITex原创 2014-03-29 01:21:03 · 498 阅读 · 0 评论