ios
EA88
这个作者很懒,什么都没留下…
展开
-
ar命令解压.a时候,报错 is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
笔者za.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)原创 2014-05-29 13:47:20 · 9104 阅读 · 0 评论 -
Ios一行一行读取大文件
//DDFileReader.h@interface DDFileReader : NSObject { NSString * filePath; NSFileHandle * fileHandle; unsigned long long currentOffset; unsigned long long totalFileLength; NSStr转载 2014-05-26 18:36:52 · 2184 阅读 · 0 评论 -
iOS自动化测试相关
How Do I Perform UI Automation Testing in iOS 4原创 2014-05-18 10:58:11 · 539 阅读 · 0 评论 -
iBeacon的一些资料
http://beekn.net/原创 2014-05-18 00:33:10 · 524 阅读 · 0 评论 -
[IOS]使用genstrings和NSLocalizedString实现App文本的本地化
App本地化的需要不用讲大家也都明白,本文将介绍一种简单的方法来实现字符串的本地化。在不考虑本地化的情况下,我们如果在代码中给一个Button定义title,一般会这样写:btn.titleLable.text = @"Example Button"; 也许我们已经写了很长的代码才考虑到本地化的问题,大可不必头疼,这时候,我们要做的是把代码从头扫一遍,然后把每个会显示给用户转载 2014-04-10 09:47:10 · 645 阅读 · 0 评论 -
Xcode的Content Hugging 和 Content Compression Resistance
原文:iOS6中引入了AutoLayout,极大的方便了UI元素的布局,现在已经过去一年了,并且大部分设备的系统也已经升级到了iOS6,是时候要使用此项技术了。在AutoLayout的学习中有两个概念官方文档讲述的不是很清楚,今天花费了2个小时的时间研究了一下,在此总结一下。Content Hugging 和 Content Compression Resi转载 2014-04-10 12:44:57 · 921 阅读 · 0 评论 -
Ios中CATransform3D的一点使用心得。
Ios的CATransform3D的一点注意事项。原创 2014-04-04 11:39:44 · 2340 阅读 · 0 评论 -
ios监听用户是否触摸了屏幕的一种实现
近期在项目中有一个需求是:原创 2014-05-05 11:40:56 · 2185 阅读 · 0 评论 -
XML,Json笔记
阅读《Ios6开发实战》的一些笔记1.原创 2014-04-16 10:29:44 · 612 阅读 · 0 评论 -
iOS移动开发周报
1.苹果修复SSL连接验证的Bug&&《Facebook Paper使用的第三方库》2.WechatPayDemo3.利用iPhone基带读写SIM卡联系人&&《ReactiveCocoa Tutorial – The Definitive Introduction4.WhatsApp 架构设计5.LLDB调试命令初探转载 2014-03-30 09:43:31 · 617 阅读 · 0 评论 -
http live stream相关
http://www.aerych.com/blog/2012/01/08/decrypting-http-streaming-video-with-nsurlprotocol/http://www.slideshare.net/invalidname/mobile-movies-with-http-live-streaming-cocoaconf-dc-jun-12转载 2014-03-12 23:35:14 · 835 阅读 · 0 评论 -
什么时候该用__block
come from:http://stackoverflow.com/questions/17823167/when-to-use-block-keyword-on-object-references-with-arc__block is needed for scalar variables if you want to change their value with code inside转载 2014-03-05 16:10:35 · 763 阅读 · 0 评论 -
在XCode5中如何为App Icon去掉阴影
当用XCode5编译并在ios6以及以下版本的设备上运行,并需要去掉桌面图标上的半弧形阴影时,可按照下面步骤进行。 进入 project settings-> general->app icons section->"Use Asset Catalog"进入到 Images.xcassets.确保响应的图标都对上号。勾选上右侧的 "Ios Icon is pre-render翻译 2014-02-20 11:22:21 · 1359 阅读 · 0 评论 -
ARC基本规则
摘录自易飞扬博客:http://www.yifeiyang.net/以及一米马http://www.1mima.com/?p=117ARC基本规则代码中不能使用retain, release, retain, autorelease不重载dealloc(如果是释放对象内存以外的处理,是可以重载该函数的,但是不能调用[super dealloc])不能使用NSAllo转载 2014-02-20 10:57:23 · 685 阅读 · 0 评论 -
iPhone开发之深入浅出 (2) — ARC之@property使用
博主:易飞扬原文链接 : http://www.yifeiyang.net/development-of-the-iphone-simply-2/上一回我们学到了一些ARC的基本概念,这一次我们来看看ARC对@property的使用规则有何影响。所有者属性我们先来看看与所有权有关系的属性,关键字间的对应关系。属性值关键字所有权转载 2014-02-20 11:09:24 · 527 阅读 · 0 评论 -
Ios 自定义字体设置粗体、斜体
1.设置粗体: 字体名字-Bold(如:Constantia-Bold)2.设置斜体: 字体名字-Italic(如:Constantia-Italic)3.设置粗斜体: 字体名字-BoldItalic(如:Constantia-BoldItalic)原创 2014-02-19 16:12:05 · 4373 阅读 · 0 评论 -
深入浅出arc
http://www.yifeiyang.net/category/embedded/iphone-embedded/%E6%B7%B1%E5%85%A5%E6%B5%85%E5%87%BA/arc/转载 2014-02-07 13:16:53 · 661 阅读 · 0 评论 -
ios越狱开发相关
iPhoneDevWiki(api)原创 2014-05-18 18:42:27 · 635 阅读 · 0 评论 -
如何编写一个CocoaPods的spec文件
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。您需要 登录 才可以下载或查看,没有帐号?注册 xCocoaPods命令介绍在上一篇文章中,已经介绍过CocoaPods的几条基本命令。pod setup用于初始化本地第三方库的Spec描述文件,所有的spec文件存都存放在~/.cocoapods目录中。pod install用转载 2014-06-12 14:46:45 · 856 阅读 · 0 评论 -
iOS开发优秀博客记录
1、Giant Robots Smashing into Other Giant Robots转载 2016-02-24 17:26:44 · 334 阅读 · 0 评论 -
iOS优秀文章记录
iOS转载 2016-01-30 14:17:01 · 348 阅读 · 0 评论 -
swif中国开发者大会--笔记(部分)
swif中国t开发者大会,视频要点记录。原创 2016-02-26 17:51:14 · 663 阅读 · 0 评论 -
iOS开发之Thrift的二进制数据编解码
什么是ThriftThrift是一种接口描述语言和二进制通讯协议,它被用来定义和创建跨语言的服务,这是维基百科的描述。简单来说就是你可以按照Thrift定义语法编写.thrift,然后用Thrift命令行生成各种语言的代码,比如OC、Java、C++、JS,调用这些代码就可以完成客户端与服务器的通信了,不需要自己去写网络请求、数据解析等接口。更多详情可以通过这里了解。为什么使用Thrift在本人的实原创 2016-04-17 00:18:11 · 1084 阅读 · 0 评论 -
iOS中的MAX(A,B)
问题由来今天有朋友在使用MAX(A,B)的时候出现了一个诡异的问题: 代码是这样的: 而执行的结果竟然是这样的: “我是不是眼花了?max(-1,0)返回了-1?”我的朋友惊讶到。 这不科学啊,怎么会负数比0大呢?于是我查看了MAX(A,B)的源码: 验证过程然后我做了如下两个实验(请注意调试区a的类型):实验1:(a的类型为unsigned long)实验2:(a的类型为int)原创 2016-04-11 19:22:54 · 6208 阅读 · 0 评论 -
iOS核心动画基本要点
什么是显式动画,什么是隐式动画?一、显式动画就是指:使用[UIView animateWithDuration:animations:]或者([UIView beginAnimations: context:];[UIView commitAnimations];)这个组合,以及([CATransaction begin];[CATransaction commit];)和- (void)addAn原创 2016-03-14 18:10:29 · 524 阅读 · 0 评论 -
GPU渲染相关文章
Getting Pixels onto the Screen (中文翻译版: 绘制像素到屏幕上 ) Designing for iOS: Graphics & Performance (中文翻译版: iOS图形处理和性能) a performance minded take on ios design (中文翻译版: iOS离屏绘制的性能和机制分析 )转载 2016-03-25 14:37:51 · 484 阅读 · 0 评论 -
iOS插件化研究之一——JavaScriptCore
iOS插件化研究之一——JavaScriptCore一、前言一样的开篇问题,为什么要研究这个?iOS为什么要插件化?为什么要借助其他语言比如html5 js甚至脚本lua等来实现原本OC/Swift应该实现的东西?原因可以归结为两点:1. iOS平台 appstore 审核速度不可控,而很多活动页面需要频繁更新,如果每次更新都走appstore审核流程,那活动也就不要做转载 2015-03-30 09:29:27 · 807 阅读 · 0 评论 -
ios 获取汉字拼音的方法比较
转载自:http://www.3lian.com/edu/2012/10-10/38406.html1.大小 pinyin最小了,POAPinyin的声明就快500行了. 2.速度 其实三者差不多,但是不要用POAPinyin原生的那个convert,那个每次都遍历查找很慢. 3.对比 pinyin只能取得汉字对应拼音的首字母,PYMethod原本是应用于股票查询的,它的拼转载 2015-03-15 22:43:27 · 586 阅读 · 0 评论 -
黑魔法__attribute__((cleanup))
黑魔法__attribute__((cleanup))转自:sunnyxx的技术博客编译器属性__attribute__用于向编译器描述特殊的标识、检查或优化,几个常用的用法看《mattt大神的文章》就好。今天发现一个名为cleanup的黑魔法属性,简单介绍下。基本用法__attribute__((cleanup(...))),用于修饰一个变量,在它的作用域转载 2015-01-13 11:47:54 · 528 阅读 · 0 评论 -
__attribute__
__attribute__Written by Mattt Thompson on January 14th, 2013A recurring theme of this publication has been the importance of a healthy relationship with the compiler. Like any craft, one's eff转载 2015-01-13 11:49:30 · 869 阅读 · 0 评论 -
Mantle
come from Mantle01 Feb 2014 by Alexander SchuchMantle is a model framework for iOS that provides a convenient way to create objects from JSON and transform those objects back into JSON.转载 2014-10-30 23:05:52 · 1799 阅读 · 0 评论 -
IOS多线程开发的总结概要
1.创建多线程的几种方法:NSThread,Operation Objects,GCD,Idle-time notifications,Asynchronous functions,Timers,Separate processes(独立进程)2.同步:locks(加锁,比如mutex),conditions(有些类似Operation的执行序列),原子操作(atomic oper原创 2014-10-29 22:36:50 · 522 阅读 · 0 评论 -
iOS 如何发送短信(sms)
转自:iOS Programming 101: How To Send SMS Text Message in iPhone Appshis is a quick follow-up to the previous post on email attachment. Some of you mentioned if we can write a short tutorial about转载 2014-11-14 14:14:31 · 2342 阅读 · 0 评论 -
Core Location Manager Changes in iOS 8(iOS8获取不到地理位置)
comThe CLLocationManager, introduced in iPhone OS 2, has always worked the same way: Create, delegate, start, wait.// Import CoreLocation framework// Add conformance// Create a location ma转载 2014-11-12 20:20:46 · 1174 阅读 · 0 评论 -
iOS 8: Interactive Playgrounds
come froCan't get enough info about iOS 8 and Swift? Join us for our Swift + iOS 8 Roadshow in cities across the U.S.WWDC 2014 was full of surprises and exciting technology to explore, and转载 2014-11-09 23:32:28 · 650 阅读 · 0 评论 -
关于Obj-c代码静态扫描 iPhone代码静态扫描的问题(clang-analyzer)
关于Obj-c代码静态扫描 iPhone代码静态扫描的问题关于Obj-c代码静态扫描 iPhone代码静态扫描的问题用Xcode开发的同事都应该知道Xcode是可以用代码的静态扫描的.就在Xcode菜单栏->Build->Build and Analyze 这里检查出,比直接编译下更容易出错的代码,并且点击相关的提示,会有为什么提示你的代码有问题.具体可转载 2014-11-07 22:07:00 · 944 阅读 · 0 评论 -
UIFont fontWithName return nil
按照步骤添加完了字体包ttf,但是在调用UIFont fontWithName: size:时,返回的却是nil,经过各种尝试和查找资料,发现在使用UIFont fontWithName: size:中Name这个参数填写的变量值不是LatoReg.ttf的文件名称“LatoReg”,而是安装这个字库到mac上显示的名称“Lato”。在使用时候调用[UIFont fontWithName:@“La原创 2014-01-04 09:39:15 · 2024 阅读 · 0 评论 -
iPhone4,iPhone5 storyboard 适配
http://stackoverflow.com/questions/12696242/how-to-switch-to-different-storyboard-for-iphone-5-(void)initializeStoryBoardBasedOnScreenSize { if ([UIDevice currentDevice].userInterfaceIdio转载 2013-12-29 20:04:25 · 1601 阅读 · 0 评论 -
NSOperationQueue
come from:marshal.easymorse.com/archives/4519使用NSOperationQueue简化多线程开发多线程开发是一件需要特别精心的事情,即使是对有多年开发经验的工程师来说。为了能让初级开发工程师也能使用多线程,同时还要简化复杂性。各种编程工具提供了各自的办法。对于iOS来说,建议在尽可能的情况下避免直接操作线程,使用比如NSOperationQu转载 2013-08-08 12:00:40 · 578 阅读 · 0 评论 -
AVFoundation的使用
come from:liwpk.blog.163.com/blog/static/3632617020134325021136/ 相机相关应用一般会用到AVFoundation. 这里简单做个整理。1. sessionAVFoundation是基于session(会话)概念的。 一个session用于控制数据从input设备到output设备转载 2013-08-19 09:45:40 · 1258 阅读 · 0 评论