[iOS]开发技术
文章平均质量分 56
零点零一
Make it right before you make it faster. Keep it right when you make it faster. Make it clear before you make it faster. Do not sacrifice clarity for small gains in efficiency. -- Brian Kernighan
展开
-
iOS工具栏
iOS开发 键盘添加工具条(toolbar)原文地址 http://gaohaijun.blog.163.com/blog/static/17669827120119233349519/工具栏的使用http://www.runoob.com/ios/att-ios-ui-toolbar.html原创 2021-12-01 10:47:07 · 200 阅读 · 0 评论 -
Objective-C关键字
NO.1: 关键字“NS” NSObject*anObject; (类名*对象名)--OC语言中NS(NeXTSTEP)为现任苹果CEO,之前NeXTSTEP老板的乔布斯团队的用户界面工具包,并一直沿用至今。由于OC中所有对象的操作都是由指针来完成,所以我们可以见到代码中大部分都是指针。NO.2:关键字“@property and @synthesize(存取转载 2014-05-01 14:28:12 · 1051 阅读 · 0 评论 -
iOS开发中使用FMDB的网文iOS 使用FMDB进行数据库操作
http://www.cnblogs.com/wuhenke/archive/2012/02/07/2341656.html转载 2014-05-04 16:25:34 · 901 阅读 · 0 评论 -
iOS开发-ios7下拉刷新,上提加载快速集成
iOS开发-ios7下拉刷新,上提加载快速集成http://www.kaifazhe.com/mobile/381576.html比较详细的jieshao转载 2014-05-05 14:05:17 · 987 阅读 · 0 评论 -
一些第三方库的了解
PBEmojiLabel 是 UILabel 的分类,用于用来插入聊天表情。MJRefresh 仅需几行代码就可以为UITableView或者CollectionView加上下拉刷新或者上拉刷新功能。可以自定义上下拉刷新的文字说明。 umsocial_screenshot_sdk 摇一摇截屏 URBSegmentedControlURBSegmentedControl自原创 2014-05-05 18:21:28 · 4703 阅读 · 0 评论 -
iOS中的位图处理——基础滤镜 系列文章不错,有空多看看
iOS中的图像处理(一)——基础滤镜系列文章不错,有空多看看转载 2014-05-15 11:45:59 · 981 阅读 · 0 评论 -
ioS:How to create a ARGB CGImageRef from a ABGR CGImageRef in Cocoa
How to create a ARGB CGImageRef from a ABGR CGImageRef in CocoaEver since I got the video feed working on my Packbot OCU application the reds and the blues have been swapped, giving the video fe转载 2014-05-15 09:22:14 · 983 阅读 · 0 评论 -
作图的遗留问题,是建立内存图片不成功吗?以后解决。
- (void)drawMemeryImage{ UIGraphicsBeginImageContext(CGSizeMake(_width, _height)); CGContextRef ctx = UIGraphicsGetCurrentContext(); UIImage *newImage = UIGraphicsGetImageFromCurrentImage原创 2014-05-15 11:14:03 · 882 阅读 · 0 评论 -
NSLog使用,在release版本禁止输出NSLog内容
在程序开发中,我们需要经常需要实时输出一些运行数据来判断程序是否正确的运行,在IOS开发中,NSLog很像printf和println,会在控制台里面格式化的输出结果。使用NSLog输出,对应不同的对象需要用不同的格式化字符,NSLog的格式如下所示:%@ 对象 %d, %i 整数 %u 无符整形 %f转载 2014-05-18 09:20:14 · 702 阅读 · 0 评论 -
Cocos2D权威指南 试读章节略读笔记
Cocos2D权威指南 试读章节略读笔记看了一些京东,当当,亚马逊的评论,普遍肯定这本书,个别觉得就是个指导的工具书,没有多深入。但是要比:“Cocos2d-x高级开发教程:制作自己...”要好。不过,有读者反映书籍编辑的不好,有些代码空格丢失,那就效果差了。好在可以下载源码能弥补。个人想等修订版的,出版时间:出版日期:2013 年3月;现在2014-4-12,也许等也得好久了吧?原创 2014-04-12 10:30:52 · 1042 阅读 · 0 评论 -
IOS中定时器NSTimer的开启与关闭
调用一次计时器方法:[cpp] view plaincopymyTimer = [NSTimer scheduledTimerWithTimeInterval:1.5 target:self selector:@selector(scrollTimer) userInfo:nil repeats:NO]; //不重复,只调用一次。tim转载 2014-05-21 09:10:09 · 822 阅读 · 0 评论 -
UIColor获取RGB值
原文地址:UIColor获取RGB值作者:Kyle方法一:CGFloat* colors = CGColorGetComponents(hsbaColor.CGColor)如:UIColor *color = [UIColor colorWithRed:0.0 green:0.0 blue:1.0 alpha:1.0];const CGFloat *components转载 2014-05-14 11:25:49 · 13805 阅读 · 0 评论 -
UIColor:RGB和HSV互相转换
UIColor:RGB和HSV互相转换关于颜色的种种属性,一直感觉挺神秘,不曾花时间来研究,今天揭开神秘面纱的一角。RGB:三原色 Red, Green, BlueAlpha:不透明度HSV : H - Hue 色度 S - Saturation 彩度 V - Brightness转载 2014-05-14 11:40:28 · 9114 阅读 · 0 评论 -
CGBitmapContextCreate函数
CGBitmapContextCreate函数参数详解函数原型:CGContextRef CGBitmapContextCreate ( void *data, size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow, CGColorSp转载 2014-05-14 12:57:10 · 21633 阅读 · 0 评论 -
图片的处理大概分 截图(capture), 缩放(scale), 设定大小(resize), 存储(save)
图片的处理大概分 截图(capture), 缩放(scale), 设定大小(resize), 存储(save)1.等比率缩放- (UIImage *)scaleImage:(UIImage *)image toScale:(float)scaleSize{UIGraphicsBeginImageContext(CGSizeMake(image.size.转载 2014-05-14 13:12:40 · 1885 阅读 · 0 评论 -
UIColor,CGColor,CIColor三者的区别和联系
http://www.cnblogs.com/smileEvday/archive/2012/06/05/UIColor_CIColor_CGColor.htmlUIColor,CGColor,CIColor三者的区别和联系转载 2014-05-14 08:21:09 · 693 阅读 · 0 评论 -
ios开发-UIColor的使用。
ios开发-UIColor的使用。在ios开发中,经常遇到对UIColor的相关操作。比如这样 self.backgroundColor = [UIColorredColor];这里的redColor是UIColor定义好的颜色。可以直接使用。相同的,还有这样几种。UIColor blackColorUICo转载 2014-05-14 11:52:47 · 8684 阅读 · 1 评论 -
将UIColor转换为RGB值
//将UIColor转换为RGB值- (NSMutableArray *) changeUIColorToRGB:(UIColor *)color{ NSMutableArray *RGBStrValueArr = [[NSMutableArray alloc] init]; NSString *RGBStr = nil; //获得RGB值描述 NSString转载 2014-05-14 11:27:45 · 11385 阅读 · 0 评论 -
IOS中十六进制的颜色转换为UIColor
IOS中十六进制的颜色转换为UIColor#pragma mark - 颜色转换 IOS中十六进制的颜色转换为UIColor+ (UIColor *) colorWithHexString: (NSString *)color{ NSString *cString = [[color stringByTrimmingCharactersInSet:[NSCharacterS转载 2014-05-14 12:43:24 · 13488 阅读 · 0 评论 -
ios iPhone的 自带输入法emoji编程
苹果iPhone5自带输入法中加入emoji表情iphone5的果粉们大家好!大家在输入文字的时候想不想加入表情呢?有的同学说肯定可以的啦,需要安装表情软件才行,其实没那么复杂的哦!网侠小编就来告诉你在输入法中加入自带emoji表情的小教程哦!打开iphone5手机,进入设置-》通用-》键盘-》添加键盘-》选择表情符号。以下图就是效果和选择“表情符号”的项!原创 2014-06-03 16:40:20 · 7582 阅读 · 0 评论 -
Emoji表情图标在iOS与PHP之间通信及MySQL存储
Emoji表情图标在iOS与PHP之间通信及MySQL存储转载 2014-06-04 10:51:08 · 10523 阅读 · 0 评论 -
UISegmentedControl-IOS开发
初始化UISegmentedControlNSArray *arr = [[NSArray alloc]initWithObjects:@"轻拍",@"长按",@"清扫",@"旋转",@"捏合",@"拖拽", nil];//先创建一个数组用于设置标题 UISegmentedControl *segment = [[UISegmentedControl alloc]ini转载 2014-06-11 10:38:15 · 687 阅读 · 0 评论 -
@synthesize obj=_obj的意义详解 @property和@synthesize
http://hi.baidu.com/feng20068123/item/ca8952fa661e5342932af2c2写的非常不错,攒一个!!!!我们在进行iOS开发时,经常会在类的声明部分看见类似于@synthesize window=_window; 的语句,那么,这个window是什么,_ window又是什么,两个东西分别怎么用,这是一个比较基本的问题,也关乎我们理解转载 2014-06-11 13:38:46 · 2473 阅读 · 0 评论 -
SDWebImage使用——一个可管理远程图片加载的类库
SDWebImage使用——一个可管理远程图片加载的类库SDWebImage托管在github上。https://github.com/rs/SDWebImage这个类库提供一个UIImageView类别以支持加载来自网络的远程图片。具有缓存管理、异步下载、同一个URL下载次数控制和优化等特征。将SDWebImage类库添加入工程时,一定注意需要添加MapKit.frame转载 2014-06-11 15:47:30 · 742 阅读 · 0 评论 -
ios设备抓包方法 http://blog.csdn.net/fengsh998/article/details/8677556
ios设备抓包方法 ios设备抓包方法 http://blog.csdn.net/fengsh998/article/details/8677556转载 2014-06-11 09:28:19 · 1002 阅读 · 0 评论 -
CocoaPods禁止显示警告inhibit_all_warnings
使用CocoaPods时开启inhibit_warnings参数的小问题永久链接 - http://www.ooso.net/archives/702inhibit_warnings参数能够有效的抑制CocoaPods引入的第三方代码库产生的warning,但是有时候会产生意想不到的错误,例如我今天引入ReactiveCocoa的时候就产生了下面的错误:CompileD转载 2015-05-04 08:53:18 · 17168 阅读 · 1 评论 -
viewWithTag获取subview规则详解
原文;http://www.cnblogs.com/smileEvday/archive/2012/03/21/2410529.html获取subview 通常我们在view层级里面对subView的操作可以通过两种方式:1、保留一个subview的引用,然后在类中通过该引用对该subview进行操作,但是要注意在适当的位置添加内存维护的代码,退出前手动释放。2、设置subview的转载 2015-05-21 08:54:52 · 5373 阅读 · 0 评论 -
Objective C运行时(runtime)技术的几个要点总结
Objective C运行时(runtime)技术的几个要点总结http://www.cnblogs.com/gugupluto/p/3159733.html转载 2015-05-21 09:38:40 · 494 阅读 · 0 评论 -
关于performSelector调用和直接调用区别
关于performSelector调用和直接调用区别 下面两段代码都在主线程中运行,我们在看别人代码时会发现有时会直接调用,有时会利用performSelector调用,今天看到有人在问这个问题,我便做一下总结,[delegate imageDownloader:self didFinishWithImage:image];[delegate performSelector:@sele转载 2015-05-21 08:53:39 · 1560 阅读 · 0 评论 -
Objective-C规范注释心得
Objective-C规范注释心得——同时兼容appledoc(docset、html)与doxygen(html、pdf)的文档生成http://blog.csdn.net/muyu114/article/details/9454197转载 2015-05-18 14:51:17 · 821 阅读 · 0 评论 -
iOS开发搜集的一些资料
iOS开发架构封装异步请求案例实现http://m.blog.csdn.net/blog/weiqubo/7468717#NSError的定制http://www.tuicool.com/articles/BJFv2uObjective-C学习之错误处理http://www.androiddev.net/objective-c%E5%AD%A6%E4%B9%A0%E4%转载 2015-07-01 16:42:47 · 473 阅读 · 0 评论 -
ios文摘https和多线程
打造安全的App!iOS安全系列之 HTTPS http://mp.weixin.qq.com/s?__biz=MjM5OTM0MzIwMQ==&mid=209247538&idx=1&sn=32e61fc9c7c1fd9cdf4a58daa36780e3&scene=21#wechat_redirect关于iOS多线程,你看我就够了 http://mp.weixin.qq转载 2015-08-15 11:08:02 · 629 阅读 · 0 评论 -
ios 各种项目源码
http://www.cocoachina.com/iOS/20160719/17078.html一:源代码实例1:快速搭建项目源代码地址:https://github.com/wujunyang/MobileProject2:高仿美团iOS版地址:https://github.com/lookingstars/meituan3:转载 2017-04-28 21:04:45 · 4983 阅读 · 0 评论 -
Your Podfile has had smart quotes sanitised. To avoid issues in the
使用Cocoapods 导入第三方的资源时,出现如下警告:Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn转载 2017-04-29 21:35:52 · 408 阅读 · 0 评论 -
CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
http://blog.csdn.net/sjl_leaf/article/details/50506057转载 2017-04-29 22:04:31 · 434 阅读 · 0 评论 -
模态视图的呈现方法及返回
- (IBAction)regOnClick:(id)sender { UIViewController* registerViewController = [[TestnibViewController alloc] init]; registerViewController.modalTransitionStyle = UIModalTransitionStyleCoverVe原创 2017-04-30 09:50:07 · 646 阅读 · 0 评论 -
【学习ios之路:UI系列】iOS沙盒机制,文件读取,归档与反归档
1.IOS中的沙盒机制 IOS中的沙盒机制是一种安全体系,它规定了应用程序只能在为该应用创建的文件夹内读取文件,不可以访问其他地方的内容。所有的非代码文件都保存在这个地方,比如图片、声音、属性列表和文本文件等。特点: 1.每个应用程序都在自己的沙盒内 2.不能随意跨越自己的沙盒去访问别的应用程序沙盒的内容 3转载 2017-05-24 14:50:41 · 439 阅读 · 0 评论 -
CocoaPods的作用
CocoaPods的作用每种语言发展到一个阶段,就会出现相应的依赖管理工具, 或者是中央代码仓库。比如 Java: maven,Ivy Ruby: gems Python: pip, easy_install Nodejs: npm 随着iOS开发者的增多,业界也出现了为iOS程序提供依赖管理的工具,这个工具叫:CocoaPods。 CocoaPods简介 CocoaPods是一个负责转载 2017-05-24 15:13:43 · 863 阅读 · 0 评论 -
SDWebImage
SDWebImage2015-06-23 没原创_去... 阅 81 转藏到我的图书馆微信分享:清除缓存:[[SDImageCache sharedImageCache] clearDisk];[[SDImageCache sharedImageCache] clearMemory];转载 2017-05-24 15:39:15 · 408 阅读 · 0 评论 -
AFHTTPSessionManager获取cookie的方法
AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; manager.responseSerializer = [AFCompoundResponseSerializer serializer];[manager POST:strUrl parameters:parameters progress:^(NSPr转载 2017-05-07 21:34:23 · 1682 阅读 · 0 评论