- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 iOS利用系统API实现中文分词
不多说,直接贴代码,-(NSArray *)stringTokenizerWithWord:(NSString *)word{ NSMutableArray *keyWords=[NSMutableArraynew]; CFStringTokenizerRef ref=CFStringTokenizerCrea
2016-03-14 12:33:40
3784
原创 解决XCode7上传报错提示(ERROR ITMS-90168)
本人最近提交包的时候出现以下提示:Could not make parent directory for: /Users/shuwei/.itmstransporter/softwaresupport/bin/Frameworks/ITunesSoftwareService.framework/Resources/ITunesSoftwareServiceConfiguration.xml ERROR ITMS-90168: "The binary you uploaded was invalid."
2015-10-09 09:34:27
11652
1
原创 ios9兼容系列之解决iPad提交报错“iPad Multitasking support requires launch story board in bundle '”
如题:博主提交ios9app时弹出以下提示:ERROR ITMS-90475: "Invalid Bundle. iPad Multitasking support requires launch story board in bundle 'xxxx'."ERROR ITMS-90474: "Invalid Bundle. iPad Multitasking support requir
2015-09-20 14:43:22
29850
8
转载 图象处理基本算法
转自一切随心1)将256*256分辨率的图像变为128*128分辨率可以将源图像划分成2*2的子图像块,然后将2*2的子图像块的所有像素颜色均按照F(i,j)的颜色值进行设定,达到降低分辨率的目的。如:F(i,j) F(i,j+1) F(i,j) F(i,j) F(i+1,j) F(i+1,j+1) 变成 F(i,
2015-05-25 20:03:47
932
转载 c移位加密
char *c=[deviceInfoStr UTF8String]; int offset=rand()%10; for (int i = 0; i<strlen(c); i++) { c[i]+=offset; } NSLog(@"%lu",strlen(c)); int len=strlen(c); c[len]=offset+
2013-12-20 19:40:56
1023
原创 调用已编译成静态库的插件私有接口的方法
首先,我们需要分析该类的私有方法 Class cls = NSClassFromString(@"XXXX");//XXXX类 Method *m = class_copyMethodList(theClass,&outCount); objc_property_t *t=class_copyPropertyList(theClass, &outCount2
2013-12-20 17:43:14
834
转载 ARC环境下查看内存计数器的方法
uintptr_t _objc_rootRetainCount(id obj)如上声明的_ o b j c _ r o o t R e t a i n C o u n t 函数可获取指定对象的引用计数数值。请看以下几个例子。{ id __strong obj = [[NSObject alloc] init]; NSLog(@"retain count = %d", _ob
2013-11-19 10:07:09
1271
原创 同时响应iOS开发中UIPanGestureRecognizer跟UITableView的拖动事件的解决方法
UIPanGestureRecognizer *panGesture = (UIPanGestureRecognizer*)gestureRecognizer;pan.delegate = (idUIGestureRecognizerDelegate>)self;然后在self里面实现以下代理- (BOOL)gestureRecognizer:(UIGe
2013-09-14 12:02:33
7934
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人