iOS
文章平均质量分 59
chuwachen
这个作者很懒,什么都没留下…
展开
-
Error about updating UI in background thread
How to fix the following error "bool _WebTryThreadLock(bool), 0xxxxxx: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit原创 2013-03-25 18:05:03 · 1782 阅读 · 1 评论 -
armv6, armv7, armv7s的区别
ARM是微处理器行业的一家知名企业,arm处理器以体积小和高性能的优势在嵌入式设备中广泛使用,几乎所有手机都是使用它的。armv6, armv7, armv7s是ARM CPU的不同指令集,原则上是向下兼容的。如iPhone4S CPU支持armv7, 但它同时兼容armv6,只是使用armv6指令可能无法充分发挥它的特性。同理iPhone5 CPU支持armv7s,它虽然也兼容armv7转载 2014-07-25 19:14:28 · 11675 阅读 · 0 评论 -
ios申请真机调试( xcode 5)详细解析
已经有开发证书的直接跳过第一步第一步:申请“开发证书”进入苹果开发者99美元账号:选择:Certificates, Identifiers & Profiles关于 Certificates,Identifiers,Profiles 的介绍请看 ”Certificates, Identifiers ,Profiles“选择:Certi转载 2014-07-25 20:04:03 · 464 阅读 · 0 评论 -
Valid signing identity not found解决办法(原有IDP私钥丢失)及Certificate、App ID、Devices、Provisioning Profiles之间区别
转载自http://blog.csdn.net/mad1989/article/details/8699147转载 2014-07-25 19:54:45 · 465 阅读 · 0 评论 -
关于Certificate、Provisioning Profile、App ID的介绍及其之间的关系
1.概念介绍如果你拥有一个开发者账户的话,在iOS Dev Center打开Certificates, Indentifiers & Profiles,你就可以看到如下的列表:Profile Portal改版有一段时间了,改版之后的结构比以前更清晰明了,易于理解和管理。上面的列表就包含了开发、调试和发布iOS应用程序所需的所有内容:Certificates、Iden转载 2014-07-25 19:10:22 · 922 阅读 · 0 评论 -
Grand Central Dispatch
什么是GCD?Grand Central Dispatch或者GCD,是一套低层API,提供了一种新的方法来进行并发程序编写。从基本功能上讲,GCD有点像NSOperationQueue,他们都允许程序将任务切分为多个单一任务然后提交至工作队列来并发地或者串行地执行。GCD比之NSOpertionQueue更底层更高效,并且它不是Cocoa框架的一部分。除了代码的平行执行能力,GC转载 2013-08-26 12:07:41 · 890 阅读 · 0 评论 -
Property attributes
There are many attributes for property as follows:atomic: Is default behaviorwill ensure the present process is completed by the cpu, before another process access the variablenot fast原创 2013-08-26 11:39:22 · 575 阅读 · 0 评论 -
NSDate conversion utilities
// Gets UTC NSDate from DateTime(.Net/WCF).+ (NSDate *)fromDateTime:(NSString *)dateTime { NSDate *utcDate; if ([dateTime isMemberOfClass:[NSNull class]]) { utcDate = nil; } else原创 2013-08-23 17:21:50 · 1066 阅读 · 0 评论 -
reloadData should be in main thread
reloadData should be called in main thread, so if you call it in work thread, you should call it as follows: dispatch_async(dispatch_get_main_queue(), ^{ [_tableVC.tableViewrel原创 2013-08-20 15:19:00 · 758 阅读 · 0 评论 -
Conversion between json and object using SBJson lib
Define two methods in an object class as follows:@interface MyObject : NSObject@property (nonatomic,copy) NSString *property;- (id)initWithJson:(NSDictionary *)item;- (id)proxyForJso原创 2013-08-20 15:05:02 · 973 阅读 · 0 评论 -
How to transfer developer profile to one mac to another mac
Export developer profile from old mac.In the Xcode Organizer, select your team in the Teams section.Click Export.Specify a filename and a password, and click Save.In new mac, In the Xcode Or原创 2013-06-22 12:18:58 · 1724 阅读 · 0 评论 -
How to distribute iOS app to device or app store or testflight
Prepare Provisioning profile:Keychain Access-->Certificate Assistant-->Request a Certificate from a Certificate Authority-->input email address (App ID), saved to disk. Sign in https://developer.a原创 2013-01-10 12:00:23 · 1544 阅读 · 0 评论 -
How to resolve "valid signing identity not found" in provisioning profiles library
When creating certificate via KeyChain in an old mac, then you want to use it in a new mac, you may see the following warning "valid signing identity not found" inprovisioning profiles library. How原创 2013-01-14 11:58:47 · 1745 阅读 · 0 评论 -
Some tips in using Xcode
Uncheck "Use Autolayout" in File inspector, then you can see "Autosizing" in Size inspector to define margin for UI controls.In Build Settings, "Product Name" is the app name you installed in device,原创 2013-06-01 21:35:23 · 645 阅读 · 0 评论 -
Set image as background for a view
How to set an image as background for a view?Solution:Using UIImageView and resize the image to fit that view (prefer)Set image as background of a UIView programmatically.原创 2013-06-01 21:27:48 · 1357 阅读 · 0 评论 -
Socket in iOS
TCP based Socket (also can use AsynSocket lib) NSInputStream *inputStream; NSOutputStream *outputStream; - (void)connect{ CFReadStreamRef readStream; CFWriteStre原创 2013-06-01 21:12:42 · 1510 阅读 · 0 评论 -
iOS Developer:真机测试
如果出现ios development一项为灰色不可点击状态,苹果的说法是如果您要为此电脑添加证书,请revoke以前的证书后添加,或者通过以前的mac导出证书 原文不记得了,大概这个意思,苹果不希望你的开发者账号里出现多台Mac的证书,如果在其他mac上已经添加过证书的话,就直接通过P12导出(导出方法见下文)后给当前的Mac使用即可,或者删除之前的证书后再添加转载 2014-07-25 19:57:42 · 4417 阅读 · 0 评论