Sportica   Sportica

随笔分类 -  objective-c

1 2 3 4 5 ··· 9 下一页
摘要:那是因为instruments找不到编译好的dSYM 其它的什么修改配置都没什么用 最好的办法就是直接删除资源文件APP名。 资源库 -> Developer -> Xcode -> DerivedData -> 找到你的app名字对应文件夹 然后果断删除就行了。删除后重新编译又会生成新的文件 原 阅读全文
posted @ 2018-03-19 09:46 qingjoin 阅读(564) 评论(0) 推荐(0) 编辑
摘要:出现这个问题是因为 静态库是用Xcode9打包的。 如果用xcode8编译的话就会出现这个问题 解决办法 从Xcode9里把这个库拷贝出来。然后放到Xcode8上面 One way to fix this is to go to: /Applications/Xcode-beta.app/Conte 阅读全文
posted @ 2017-10-26 15:34 qingjoin 阅读(6829) 评论(0) 推荐(0) 编辑
摘要://dic 转json 如果用系统自带的会出现空格。 + (NSString *)returnJSONStringWithDictionary:(NSDictionary *)dictionary{ //系统自带 // NSError * error; // NSData * jsonData = [NSJSONSerializa... 阅读全文
posted @ 2017-09-14 17:15 qingjoin 阅读(3144) 评论(0) 推荐(0) 编辑
摘要://获取一个32位随机数 static const char _randomStr[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; //!@#$%^*() //1、获取一个随机整数范围在:[0,100)包括0,不包括100 int x = arc4random() % 100; // 获取一个随机... 阅读全文
posted @ 2017-06-27 13:36 qingjoin 阅读(2147) 评论(0) 推荐(0) 编辑
摘要:#import //获取IP #import //只能获取WIFI下的IP地址 + (NSString *)getIPAddress { NSString *address = @"error"; struct ifaddrs *interfaces = NULL; struct ifaddrs *temp_addr = NULL; int succes... 阅读全文
posted @ 2017-06-21 15:57 qingjoin 阅读(588) 评论(0) 推荐(0) 编辑
摘要:_myAccount = [[UITextField alloc]init]; _myAccount.frame = CGRectMake(0, 0, 200, 100); _myAccount.backgroundColor = [UIColor clearColor]; [_myAccount.layer setCornerRadius:4]; //设置输入... 阅读全文
posted @ 2017-05-26 16:31 qingjoin 阅读(201) 评论(0) 推荐(0) 编辑
摘要://事例 CGRect alertFarm = CGRectMake(20,20,100,50); [self noticeAlert:_bgView withNoticeStr:@"登录成功" withFram:alertFarm]; //渐变提示 +(void)noticeAlert:(UIView*)view withNoticeStr :(NSString*)str withFra... 阅读全文
posted @ 2017-05-24 15:25 qingjoin 阅读(1137) 评论(0) 推荐(0) 编辑
摘要:// // YKSHttpsRequest.m // YKShareSdkDemo // // Created by qingyun on 22/05/2017. // Copyright © 2017 qingjoin. All rights reserved. // #import "YKSHt 阅读全文
posted @ 2017-05-23 09:28 qingjoin 阅读(3940) 评论(0) 推荐(0) 编辑
摘要:UILabel *noticeLabel = [[UILabel alloc]init]; noticeLabel.text = @"当前账号已失效果,已清除当前账号已失效果,已清除当前账号已失效果,已清除当前账号已失效果,已清除当前账号已失效果,已清除当前账号已失效果,已清除"; noticeLa 阅读全文
posted @ 2016-11-02 14:27 qingjoin 阅读(150) 评论(0) 推荐(0) 编辑
摘要:// // UncaughtExceptionHandler.m // UncaughtExceptions // // Created by Matt Gallagher on 2010/05/25. // Copyright 2010 Matt Gallagher. All rights res 阅读全文
posted @ 2016-10-17 16:21 qingjoin 阅读(346) 评论(0) 推荐(0) 编辑
摘要:#import "GLQyRsa.h" #import "GLSupprot.h" #import "GLLoginViewController.h" @implementation GLQyRsa static SecKeyRef _public_key=nil; + (SecKeyRef) getPublicKeyFile { // 从公钥证书文件中获取到公钥的SecKeyRef指针... 阅读全文
posted @ 2016-09-30 18:04 qingjoin 阅读(977) 评论(0) 推荐(0) 编辑
摘要://JS里的一个回调。比如网页上的某个按钮点一下之后。JS会调用setKey这个方法。 JSContext *context1 = [self.startView valueForKeyPath:@"documentView.webView.mainFrame.javaScriptContext"] 阅读全文
posted @ 2016-09-18 15:36 qingjoin 阅读(171) 评论(0) 推荐(0) 编辑
摘要:去掉日志 #ifndef __OPTIMIZE__ #define NSLog(...) NSLog(__VA_ARGS__) #else #define NSLog(...){} #endif 打开Xcode -->>product -->scheme -->>edit scheme -->inf 阅读全文
posted @ 2016-05-31 18:08 qingjoin 阅读(213) 评论(0) 推荐(0) 编辑
摘要://暴力打开某个APP = 。= 如果可以打开。直接打开不解释 +(BOOL)isOpenApp:(NSString*)appIdentifierName { Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace"); NSObject* workspace = [LSAppli... 阅读全文
posted @ 2016-04-28 18:02 qingjoin 阅读(1849) 评论(0) 推荐(0) 编辑
摘要:打包.a 文件时, 如果是两个Targets那么可运行调试的 build phases- Link Binary With Libraries 如果加入.a 文件。 那么就不需要在Compile Sources 里加入另外一个Targets 里的.m 文件。反之如果没有加入.a 文件就要加另一个Ta 阅读全文
posted @ 2016-03-01 09:29 qingjoin 阅读(1372) 评论(0) 推荐(0) 编辑
摘要:Undefined symbols for architecture i386: "_deflate", referenced from: PlatCompress(enumCompressOperation, CompressCookie*, void*, long) in libMo.a(tlp 阅读全文
posted @ 2016-02-29 14:10 qingjoin 阅读(2249) 评论(0) 推荐(0) 编辑
摘要:[self performSelector:@selector(callFooWithArray) withObject:[NSArray arrayWithObjects:@"first", @"second", nil] afterDelay:15.0]; //延迟15秒 阅读全文
posted @ 2015-11-17 14:35 qingjoin 阅读(947) 评论(0) 推荐(0) 编辑
摘要:/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices */@interface LSApplicationWorkspace... 阅读全文
posted @ 2015-11-16 12:29 qingjoin 阅读(4640) 评论(0) 推荐(0) 编辑
摘要:-(void)getAppPlist{ Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace"); NSObject* workspace = [LSApplicationWorkspace_... 阅读全文
posted @ 2015-11-09 16:45 qingjoin 阅读(1453) 评论(0) 推荐(0) 编辑
摘要:iOS 9在HTTP 访问时会出错 iOS9 Error Domain=NSURLErrorDomain Code=-1022这时需要修改info.plist 文件在Info.plist中添加NSAppTransportSecurity类型Dictionary。在NSAppTransportSecu... 阅读全文
posted @ 2015-10-28 10:02 qingjoin 阅读(480) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 9 下一页
  Sportica