自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(251)
  • 收藏
  • 关注

转载 instruments symbol name 不显示函数名!

那是因为instruments找不到编译好的dSYM 其它的什么修改配置都没什么用最好的办法就是直接删除资源文件APP名。资源库 -> Developer -> Xcode -> DerivedData -> 找到你的app名字对应文件夹 然后果断删除就行了。删除后重新编译又会生成新的文件原因可能是项目路径改变了,所以instrumen...

2018-03-19 09:46:00 467

转载 ld: framework not found FileProvider for architecture arm64

出现这个问题是因为 静态库是用Xcode9打包的。 如果用xcode8编译的话就会出现这个问题解决办法 从Xcode9里把这个库拷贝出来。然后放到Xcode8上面One way to fix this is to go to:/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform...

2017-10-26 15:34:00 228

转载 iOS NSDictionary 转Json 去掉换行去掉空格

//dic 转json 如果用系统自带的会出现空格。+ (NSString *)returnJSONStringWithDictionary:(NSDictionary *)dictionary{ //系统自带 // NSError * error; // NSData * jsonData = [NS...

2017-09-14 17:15:00 495

转载 iOS 随机数获取

//获取一个32位随机数static const char _randomStr[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; //!@#$%^*()//1、获取一个随机整数范围在:[0,100)包括0,不包括100 int x = arc4random() % 100;...

2017-06-27 13:36:00 227

转载 iOS 获取IP

#import <ifaddrs.h> //获取IP#import <arpa/inet.h>//只能获取WIFI下的IP地址+ (NSString *)getIPAddress { NSString *address = @"error"; struct ifaddrs *interfaces = NULL; ...

2017-06-21 15:57:00 53

转载 UITextField 基本设置

_myAccount = [[UITextField alloc]init]; _myAccount.frame = CGRectMake(0, 0, 200, 100); _myAccount.backgroundColor = [UIColor clearColor]; [_myAccount.layer setCornerRadius:4];...

2017-05-26 16:31:00 52

转载 iOS 渐变提示。错误弹出提示 几秒自动消失

//事例 CGRect alertFarm = CGRectMake(20,20,100,50); [self noticeAlert:_bgView withNoticeStr:@"登录成功" withFram:alertFarm];//渐变提示+(void)noticeAlert:(UIView*)view withNoticeStr :(NSString*)...

2017-05-24 15:25:00 93

转载 iOS https请求 NSURLSessionDataTask

//// YKSHttpsRequest.m// YKShareSdkDemo//// Created by qingyun on 22/05/2017.// Copyright © 2017 qingjoin. All rights reserved.//#import "YKSHttpsRequest.h"@...

2017-05-23 09:28:00 237

转载 iOS 渐变提示。Labe自动换行

UILabel *noticeLabel = [[UILabel alloc]init]; noticeLabel.text = @"当前账号已失效果,已清除当前账号已失效果,已清除当前账号已失效果,已清除当前账号已失效果,已清除当前账号已失效果,已清除当前账号已失效果,已清除"; noticeLabel.frame = CGRectMake(0, 400, 300...

2016-11-02 14:27:00 59

转载 iOS crash 异常捕获

//// UncaughtExceptionHandler.m// UncaughtExceptions//// Created by Matt Gallagher on 2010/05/25.// Copyright 2010 Matt Gallagher. All rights reserved.//// Permission is given ...

2016-10-17 16:21:00 57

转载 iOS RSA 证书加密

#import "GLQyRsa.h"#import "GLSupprot.h"#import "GLLoginViewController.h"@implementation GLQyRsastatic SecKeyRef _public_key=nil;+ (SecKeyRef) getPublicKeyFile{ // 从公钥证书文件中获...

2016-09-30 18:04:00 114

转载 iOS javascript js 交互

//JS里的一个回调。比如网页上的某个按钮点一下之后。JS会调用setKey这个方法。JSContext *context1 = [self.startView valueForKeyPath:@"documentView.webView.mainFrame.javaScriptContext"];context1[@"setKey"] = ^(NSString...

2016-09-18 15:36:00 76

转载 windows 隐藏文件方法

隐藏:然后在里面输入:attrib +s +a +h +r f:\123 (f的意思就是F盘,123就是你新建的文件夹名字),然后按回车,你会发现F盘下的123文件夹不见的,其实就是被你隐藏了。文件显示:那么如果你要用到文件夹的时候,该怎么做呢?前面的步骤都是一样的,就只需要在cmd界面输入attrib -a -s -h -r f:\123 就行了(一定要记住文件夹名字...

2016-06-26 01:14:00 100

转载 iOS 日志

去掉日志#ifndef __OPTIMIZE__#define NSLog(...) NSLog(__VA_ARGS__)#else#define NSLog(...){}#endif打开Xcode -->>product -->scheme -->>edit scheme -->info 设置debug or relea...

2016-05-31 18:08:00 58

转载 //暴力打开某个APP iOS 私有API LSApplicationWorkspace

//暴力打开某个APP = 。= 如果可以打开。直接打开不解释+(BOOL)isOpenApp:(NSString*)appIdentifierName{ Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace"); NSObject* workspace ...

2016-04-28 18:02:00 314

转载 打包.a 文件时, build phases- Link Binary With Libraries

打包.a 文件时, 如果是两个Targets那么可运行调试的 build phases- Link Binary With Libraries 如果加入.a 文件。那么就不需要在Compile Sources 里加入另外一个Targets 里的.m 文件。反之如果没有加入.a 文件就要加另一个Targets 里的所有文件。当然一般情况下最好是加入.a 文件。简单明了...

2016-03-01 09:29:00 487

转载 Undefined symbols for architecture i386: "_deflate", referenced from:

Undefined symbols for architecture i386: "_deflate", referenced from: PlatCompress(enumCompressOperation, CompressCookie*, void*, long) in libMo.a(tlplatcompress.o) "_deflate...

2016-02-29 14:10:00 130

转载 iOS 9 failed for URL: "XXX://@" - error: "This app is not allowed to query for scheme XXX" iO...

iOS 从C APP里启动 D APP首先在D APP里设置 URL Schemes在info.plist 文件里添加URL SchemesURL Types -->item0 --> URL Schemes --> TestD然后再回到C APP 找到info.plist 文件添加LSApplicationQueriesSch...

2015-11-30 15:01:00 249

转载 performSelector 多个参数

[self performSelector:@selector(callFooWithArray) withObject:[NSArray arrayWithObjects:@"first", @"second", nil] afterDelay:15.0]; //延迟15秒转载于:https://www.cnblogs.com/qingjoin/p/4971647.html...

2015-11-17 14:35:00 223

转载 iOS 获取APP相关信息 私有API

/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices */@interface LSApplicationWorkspace : NSObject// Image: /System/Li...

2015-11-16 12:29:00 80

转载 iOS 获取已安装 的APP

-(void)getAppPlist{ Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace"); NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defau...

2015-11-09 16:45:00 207

转载 iOS9 Error Domain=NSURLErrorDomain Code=-1022 App Transport Security (ATS)

iOS 9在HTTP 访问时会出错 iOS9 Error Domain=NSURLErrorDomain Code=-1022这时需要修改info.plist 文件在Info.plist中添加NSAppTransportSecurity类型Dictionary。在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Bo...

2015-10-28 10:02:00 177

转载 iOS9中找不到XXX.dylib 与 is unavailable no availabel on ios (app extension) - use view controller 的解...

在 iOS9 中现在找不到 XXX.dylib 了,比如libz.tbd 如果要用到 libz.dylib,可以用下面的办法,来自 Stack Overflow。Go to Build Phases >Link Binary with Librairies > + > Add otherOnce in the file selection windo...

2015-09-24 15:54:00 86

转载 iOS 在不添加库的情况下 通过抽象类来获取自己想要的方法

#define SYSTEM_VERSION_MORE_THAN_BFDATA(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)+ (NSString *)advertisingID { ...

2015-08-10 16:51:00 63

转载 iOS 设置 UIWebView UserAgent

NSString *userAgent = [[[UIWebView alloc] init] stringByEvaluatingJavaScriptFromString:@"navigator.userAgent"]; NSString *customUserAgent = [userAgent stringByAppendingFormat:@"%@", @"; xfq...

2015-08-02 16:25:00 85

转载 Mac 流程图

https://www.lucidchart.com/pages/signup?utm_expid=39895073-174.qKyHpBEbQS26y86OArD-rQ.1https://www.processon.com/转载于:https://www.cnblogs.com/qingjoin/p/4563224.html

2015-06-09 13:20:00 141

转载 iOS 获取设备型号 ip6更新

//获得设备型号+ (NSString *)getCurrentDeviceModel:(UIViewController *)controller{ int mib[2]; size_t len; char *machine; mib[0] = CTL_HW; mib[1] = HW_MACHINE; ...

2015-05-27 13:57:00 91

转载 iOS 获取UDID

https://github.com/ylechelle/OpenUDID转载于:https://www.cnblogs.com/qingjoin/p/4384167.html

2015-04-01 16:02:00 80

转载 关闭动画效果

[showView setModalTransitionStyle:UIModalTransitionStyleCoverVertical]; [self presentViewController:showView animated:YES completion:nil];-(void)btnPress{ [self dismissViewCo...

2015-03-31 13:20:00 152

转载 iOS 真机上图标不显示

今天在调试时发现模拟器上图标显示了。但真机上测试时发现图标不显示。解决办法57*57 的图标然后命名为: Icon.png这样显示就正常了、参考资料:http://www.cnblogs.com/niit-soft-518/p/4078476.html转载于:https://www.cnblogs.com/qingjoin/p/4290646.h...

2015-02-13 17:13:00 164

转载 NSobject 结构

参考地址: https://iosdevelopmenttutorials.wordpress.com/tag/uiscrollview/Apple Documentation转载于:https://www.cnblogs.com/qingjoin/p/4284420.html

2015-02-10 17:26:00 88

转载 "___gxx_personality_v0", referenced from:

这是因为里面有用到C++ 的一些东西。所以会出现这个问题两种解决办法。第一种。TARGETS -> Build Phases -> Link Binary With Libraries 添加libstdc++.6.dylib 第二种。找到设置搜索 Other Linker Flags 后面输入 -libstdc++这样就解决了编译错误的问题...

2015-01-15 13:52:00 337

转载 archivedDataWithRootObject NSUserDefaults

archivedDataWithRootObject 存储BusinessCard *bc = [[BusinessCard alloc] init]; NSUserDefaults *ud = [NSUserDefaults standardUserDefaults]; NSData *udObject = [NSKeyedArchiver archivedDataWit...

2014-12-31 16:48:00 278

转载 iOS MessagePack

参考地址:http://msgpack.orgInstallpod "MPMessagePack"Writing#import <MPMessagePack/MPMessagePack.h>NSDictionary *dict =@{@"n": @(32134123),@"bool": @(YES),@"array": @[@(1....

2014-12-29 15:18:00 196

转载 Unity3d -> Xcode 多个渠道版本发布文件合并

第一步:Users/xxx/.jenkins/jobs/projectname/workspace/build/iOS_iphone 把这里面所有文件拷贝到生成的xcode 工程下的Data目录如果换一个渠道只要把相应的Data目录、 Libraries 目录 还有渠道SDK 目录更新就可以了。前提是所有接口都保持一致/Data/Raw/Prefe...

2014-11-12 17:42:00 91

转载 Mac WIn7 QQ聊天记录互导 聊天记录合并

也许等哪天老了回过头来看看。说不定还有一丝欢乐。有几个方法可以实现一、dropbox数据同步二、QQ会员三、下面方法1、因为现在的Mac QQ还不支持聊天记录的导入导出。所以只能手动了如果是新Mac 第一次装QQ。那么先找到/Users/XXX/Library/Containers/com.tencent.qq/Data/Library/Applicatio...

2014-10-29 11:10:00 554

转载 Unity3d for beginners

tutorial addr:https://www.youtube.com/watch?v=QUCEcAp3h281、打开Unity3d File->newProject ->create Project2、Assets->Import Package ->Character controlers & Skyboxes & Te...

2014-10-23 16:32:00 86

转载 iOS 8 swift 键盘不出来 ios 8 uitextfield keyboard not appearing

ios 8 uitextfield keyboard not appearing//发现在iphone 6 and iPhone plus 上面键盘不出来。后来查了下原来要在模拟器里设置下var inputText = UITextField(frame: CGRectMake(0, 200, self.view.bounds.size.width, 30)) ...

2014-09-29 16:27:00 107

转载 iOS 开发者证书总结 in-house

iOS 证书分两种类型.第一种为$99美元的,这种账号有个人和公司的区别,公司账号能创建多个子账号,但个人的不能。这种账号可以用来上传app store第二种为¥299美元的,这种账号只能用于企业内部使用,不能用来上传app store .也就是常说的in-house证书(用这种证书打出来的包能在任何iOS设备上运行,不需要苹果的验证、签名)--不要误解了这种账号即能上传app ...

2014-09-16 18:30:00 214

转载 iOS 根据圆心的坐标点、半径、当前手势所在的坐标点,计算出圆的运动轨迹坐标...

/** * 根据圆心的坐标点、半径、当前手势所在的坐标点,计算出圆的运动轨迹坐标 * @param radius 圆心半径 * @param centerCircle 圆心的坐标点 * @param currentPoint 当前的手势所在的坐标点 * @return CGPoint 返回圆的坐标 */+(CGPoint)CirclePoi...

2014-09-12 10:47:00 242

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除