`
siruoxian
  • 浏览: 231472 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
  UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Extension Xcode.Device.iPhone class \\\'DVTiPhoneLocator\\\' not found for required key \\\'locatorClass\\\' UserInfo: {     DVTExtensionClassNameErrorKey = DVTiPhoneLocator;     DVTExtensionIdentifierErrorKey = \\\"Xcode.Device.iPho ...
/Users/username/Desktop/proj/projName/group/lib.a(manger.o) unable to open object file 需要把 GenerateDebugSymbols =NO,project与target都要设置下,
网上看到文章,收藏一下。 系统宏汇集 __FILE__   当前文件所在目录                            __DATE__                          替代文字”是一个含有编译日期的字符串字面值,日期格式为“mm dd yyyy”(例如:“Mar 19 2006”)。如果日期小于10日,就在日的前面放一个空格符。NSLog(@"_DATE_=%s",__DATE__); __FUNCTION__  当前函数名称 __LINE__               当前语句在源文件中的行数 __TIME__ 此字 ...
通常打包采用xcodebuild和xcrun两个命令,xcodebuild负责编译,xcrun负责将app打成ipa。     常见步骤如下: 1、清理工程 /usr/bin/xcodebuild -target targetName clean   2、编译工程   /usr/bin/xcodebuild -target targetName 3、打包 /usr/bin/xcrun -sdk iphoneos PackageApplication -v path/To/xxx.app -o xxx.ipa  如果是含签名的包,上面两个命令需要增加一些参数。   x ...
+ (NSArray *)runningProcesses {          int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_ALL, 0};     size_t miblen = 4;          size_t size;     int st = sysctl(mib, miblen, NULL, &size, NULL, 0);          struct kinfo_proc * process = NULL;     struct kinfo_proc * newprocess = NULL;    ...
iOS 7.1正式版发布了,之前使用itms-services://URL方式在线安装ipa文件的方法失效了,点击的时候报错为:“无法安装应用程序,因xxx.com的证书无效” 其实iOS 7.1修改了manifest.plist文件的访问协议,之前可以通过http协议访问,在iOS 7.1之后必须使用https协议方式访问。 比如之前的链接代码为: itms-services://?action=download-manifest&url=http://example.com/manifest.plist 在iOS 7.1之后,就需要修改为: itms-services: ...
看到的好东西,留着以后用得着,原文地址: http://blog.csdn.net/shouqiangwei/article/details/12286503 一般我们在使用http或者socket上传或者下载文件的时候,经常会在完成之后经行一次MD5值得校验(尤其是在断点续传的时候用的更 多) ...
-(void)facebook{     ACAccountStore *account=[[ACAccountStore alloc] init];  //本机账户数据库, 储存weibo,facebook等各种账户     ACAccountType *accountType=[account accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];     NSLog(@"accountType:%@",acc ...
-(void)tencentWeibo{          ACAccountStore *account=[[ACAccountStore alloc] init];  //本机账户数据库, 储存weibo,facebook等各种账户     ACAccountType *accountType=[account accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTencentWeibo];     NSLog(@"accountType:%@",accountType);         ...
-(void)sinaWeibo{     ACAccountStore *account=[[ACAccountStore alloc] init];  //本机账户数据库, 储存weibo,facebook等各种账户     ACAccountType *accountType=[account accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierSinaWeibo];     NSLog(@"accountType:%@",accountType);     [account request ...
-(void)twitter{     ACAccountStore *account=[[ACAccountStore alloc] init];  //本机账户数据库, 储存weibo,facebook等各种账户     ACAccountType *accountType=[account accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];     NSLog(@"accountType:%@",accountType);     [account requestAcces ...
-(UIImage *)BackgrounTransparent:(UIImage*)image{     CGImageRef  imageRef = image.CGImage;         size_t width  = CGImageGetWidth(imageRef);          size_t height = CGImageGetHeight(imageRef);              // 构成像素的各个RGB要素为多少bit          size_t                  bitsPerComponent;      ...
1.unzip xxx.ipa 2. mkdir Applications 3. mv xxx.app Applications 4. mkdir DEBIAN 5. nano DEBIAN/control 6. echo "2.0" > debian-binary 7. dpkg-deb -bZ lzma xxxx 8. dpkg-scanpackages -m . /dev/null >Packages 9. bzip2 Packages 原文:http://blog.sina.com.cn/s/blog_7a799ca10100xle0 ...

change useragent

NSDictionary*dictionary =[NSDictionary dictionaryWithObjectsAndKeys:@"Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_3 like Mac OS X; ja-jp) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5"
#import <SystemConfiguration/CaptiveNetwork.h>   - (NSString *)currentWifiSSID {     // Does not work on the simulator.     NSString *ssid = nil;     NSArray *ifs = (id)CNCopySupportedInterfaces();     for (NSString *ifnam in ifs) {         NSDictionary *info = (id)CNCopyCurrentNetworkI ...
Global site tag (gtag.js) - Google Analytics