04 2014 档案
摘要:exclusiveTouchA Boolean value that indicates whether the receiver handles touch events exclusively.Setting this property to YES causes the receiver to...
阅读全文
摘要:iOS中block类型大全typedef的block作为属性的block作为变量的block作为方法变量入参的block作为方法参数的block无名block内联函数的block递归调用的block作为方法返回值的block作为函数名的block(太过奇葩,完全不知道怎么用-_-!)
阅读全文
摘要:定制NSLog便于打印调试本人之前从事过嵌入式开发,对于打印调试比较在行,现分享定制的NSLog以及教大家如何使用.源码下载地址 https://github.com/YouXianMing/YXLog下载文件后,将文件夹导入到工程当中,如下图示所有的打印配置信息都在文件YXLogConfig.h当...
阅读全文
摘要:上级向的十个iOS面试问题转自http://onevcat.com/2013/04/ios-interview/ 不管对于招聘和应聘来说,面试都是很重要的一个环节,特别对于开发者来说,面试中的技术问题环节不仅是企业对应聘者技能和积累的考察,也是一个开发者自我检验的好机会。对于iOS和Mac开发来...
阅读全文
摘要:ARC与MRC的block有着一些区别,笔记整理ARC的block,仅仅是自己参考的笔记,详情请参考 http://www.cnbluebox.com/?p=255在开始之前,请新建一个Model类,写几个如下的属性,用于后面测试block的特性.Block的类型与内存管理根据Block在内存中的位...
阅读全文
摘要:JFDepthView给view提供3D景深https://github.com/atljeremy/JFDepthViewThis is an iOS project for presenting views in iOS with a 3D effect to add depth. JFDept...
阅读全文
摘要:CKShapeView支持CAShapeLayerhttps://github.com/conradev/CKShapeViewCKShapeView is aUIViewsubclass that is backed by aCAShapeLayer.In other words, it is a...
阅读全文
摘要:LazyFadeInView渐入显示text文本https://github.com/itouch2/LazyFadeInViewLazyFadeInView is a cool way to animate the appearnce of a label. This effect is a cl...
阅读全文
摘要:NSMapTable 不只是一个能放weak指针的 NSDictionaryNSMapTable是早在Mac OS X 10.5(Leopard)的引入集合类。乍一看,这似乎是作为一个替换NSDictionary的存在,可以选择“strong”和“week”指针。 在这篇文章中,我会告诉你除了为什...
阅读全文
摘要:ARC下的block导致的循环引用问题解析更详细细节请参考 http://blog.sina.com.cn/s/blog_8c87ba3b0101m599.htmlARC下,copy到堆上的block,会强引用进入到该block中的外部变量.这很容易导致循环引用的问题.比方说:一个VC(这里指一个c...
阅读全文
摘要:* 复原所有面板设置* 文件 -> 新建 -> 剪切板
阅读全文
摘要:CocoaAsyncSocket 套接字https://github.com/robbiehanson/CocoaAsyncSocketAsynchronous socket networking library for Mac and iOS用于iOS以及Mac的异步套接字网络库。TCPGCDAs...
阅读全文
摘要:YLGIFImage高效读取GIF图片https://github.com/liyong03/YLGIFImageAsynchronized GIF image class and Image viewer supporting play/stop GIF images.异步加载GIF图片的类,支持...
阅读全文
摘要:工厂方法模式定义创建对象的接口,让子类决定实例化哪一个类,工厂方法使得一个类的实例化延迟到其子类.*最初的定义出现于(Addison-Wesley,1994)注意:我讲解的是静态工厂,它只能执行静态的方法,也就是类方法,似乎与工厂方法有些神识但也有区别.先准备一个基类的数据模型BaseModel.h...
阅读全文
摘要:下载地址 http://pan.baidu.com/s/1hq3fUVq 思维导图又叫心智图,是表达发射性思维的有效的图形思维工具 ,它简单却又极其有效,是一种革命性的思维工具。思维导图运用图文并重的技巧,把各级主题的关系用相互隶属与相关的层级图表现出来,把主题关键词与图像、颜色等建立记忆链接,思维...
阅读全文
摘要:NSHashTable 我们使用集合(NSArray,NSMutableArray,NSDictionary,NSMutableDictionary,NSSet,NSMutableSet)存储对象时会对其强引用(你可以使用单例的集合存储数据试一下咯),有时候我们不想这样子,怎么办呢? 那就使用NSH...
阅读全文
摘要:PBJNetworkObserver网络监控https://github.com/piemonte/PBJNetworkObserverIntroduction'PBJNetworkObserver' is an iOS component for detecting changes in netw...
阅读全文
摘要:OHAttributedLabel富文本标签https://github.com/AliSoftware/OHAttributedLabel以下是我渲染出来的效果OHAttributedLabelThis class allows you to use a UILabel with NSAttrib...
阅读全文
摘要:TLMotionEffect重力感应https://github.com/jvenegas/TLMotionEffectThis category adds a motion effect to your UIView. This is a similar effect can be seen in...
阅读全文
摘要:TSActivityIndicatorView自定义指示器https://github.com/tomkowz/TSActivityIndicatorViewTSActivityIndicatorViewThis is very simple view class that looks like a...
阅读全文
摘要:获取音视频文件AVMetadata数据问题来源:http://stackoverflow.com/questions/16318821/extracting-mp3-album-artwork-in-ioshttp://stackoverflow.com/questions/14030746/ios...
阅读全文
摘要:SoundManager 音频管理器https://github.com/nicklockwood/SoundManagerPurposeSoundManager is a simple class for playing sound and music in iOS or Mac apps.Sou...
阅读全文
摘要:Markdown 文档地址 http://pan.baidu.com/s/1o6nu9ToMarkdown还有一系列衍生版本,用于扩展Markdown的功能(如表格、脚注、内嵌HTML等等),这些功能原初的Markdown尚不具备,同时,也能让Markdown转换成更多的格式,例如LaTeX,Doc...
阅读全文
摘要:UIBezierPath的使用1. 使用UIBezierPath绘制多边形 // 获取path UIBezierPath *aPath = [UIBezierPath bezierPath]; // 设定起始点 [aPath moveToPoint:CGPointMa...
阅读全文
摘要:AnimatedTransitionGallery 转场动画回廊https://github.com/shu223/AnimatedTransitionGalleryCollection of iOS 7 custom animated transitions using UIViewControl...
阅读全文
摘要:CAShapeLayer之前讲过CALayer动画相关知识,再来看看更加复杂的CAShapeLayer相关的动画知识.普通CALayer在被初始化时是需要给一个frame值的,这个frame值一般都与给定view的bounds值一致,它本身是有形状的,而且是矩形.CAShapeLayer在初始化时也...
阅读全文
摘要:使用openURL实现程序间带参数跳转详解实现的效果:有两款应用A与B,A打开BA --> B1. 新建工程B,bundle ID为com.YouXianMing.B建立一个URL这么填写(与前面bundle ID类似的写法):2. 新建工程A,bundle ID随便起,为简单起见,写下如下代码 ...
阅读全文
摘要:DFCircleActivityIndicatorNative, customizable and animated circular view to show when long activity is running, for iOS Apps. No more images needed. J...
阅读全文
摘要:ABCustomUINavigationController ABC定制视图导航控制器Subclass of UINavigationController for overwriting push and pop methods to create new transitions effects. ...
阅读全文
摘要:UIView-draggable可拖拽的UIViewhttps://github.com/andreamazz/UIView-draggableUIView category that adds dragging capabilities 一个类目用来给UIView便利的添加拖拽手势Setup wi...
阅读全文
摘要:SFRoundProgressCounterView带有进度显示的倒计时视图https://github.com/simpliflow/SFRoundProgressCounterViewA custom UIView with a rounded progress bar and a counte...
阅读全文
摘要:ColourClock将时间值转换成背景色https://github.com/bennyguitar/ColourClockThis project converts Time to Hex/RGB, and is quite beautiful to look at. This was HEAV...
阅读全文
摘要:ClockView 时钟https://github.com/nacho4d/ClockViewOverviewClockViewis s simple class that will simulate an analog (or wall like) clock. ClockView makes ...
阅读全文
摘要:MZTimerLabel用作秒表或者倒计时https://github.com/mineschan/MZTimerLabelA handy class for iOS to use UILabel as a countdown timer or stopwatch just like in Appl...
阅读全文
摘要:MCProgressView使用自定义图片做进度显示https://github.com/Baglan/MCProgressViewProgress bar view with custom images.使用自定义图片来显示进度条。Installation(安装)Add the QuartzCor...
阅读全文
摘要:ADPopupView触摸弹出视窗https://github.com/Antondomashnev/ADPopupViewADPopupView is an iOS drop-in classes that displays popup at custom point in custom view...
阅读全文
摘要:ShakingAlertView 震动效果的AlertViewhttps://github.com/lukestringer90/ShakingAlertViewShakingAlertView is a UIAlertView subclass with a password entry text...
阅读全文
摘要:AGPhotoBrowser 好用的图片浏览器https://github.com/andreagiavatto/AGPhotoBrowserA photo browser for iOS6 and iOS7 inspired by Facebook.一个iOS6和iOS7的图片浏览器,灵感来自于F...
阅读全文
摘要:CALayerThe CALayer class manages image-based content and allows you to perform animations on that content. Layers are often used to provide the backin...
阅读全文
摘要:1.When my application is entering background, because the user push the home button, the animations correctly set in pause, but when i re-open my app,...
阅读全文
摘要:FTCoreTextAn open source Objective-C interface component that makes use of the CoreText framework to render static text content using a highly customi...
阅读全文
摘要:Enter The Matrixhttps://github.com/mpospese/EnterTheMatrixThe sample application to accompany my conference talk "Enter The Matrix" on matrix transfor...
阅读全文
摘要:网络通信有时候需要传递参数userAgent,iOS中获取userAgent很简单. UIWebView* webView = [[UIWebView alloc] initWithFrame:CGRectZero]; NSString *userAgentString = [webVi...
阅读全文
摘要:OpenUDIDOpen source initiative for a universal and persistent UDID solution for iOS.首创的给iOS提供设备唯一标示符的一个开源代码.https://github.com/ylechelle/OpenUDID使用很简单...
阅读全文
摘要:addChildViewControllerIf the new child view controller is already the child of a container view controller, it is removed from that container before b...
阅读全文
摘要:适配屏幕其实很简单,但为了保持兼容性以及写的代码的通用性,以及最小的改动代码,本人按照如下的一种方式来适配,可以一劳永逸.1. 先定义几个宏,分辨表示应用可以使用区域的高度,屏幕可用区域的高度,屏幕的宽度2. 再看看如下图的一些描述3. 接下来看看适配的代码如何写#import "RootViewC...
阅读全文
摘要:FastCodinghttps://github.com/nicklockwood/FastCodingA faster and more flexible binary file format replacement for NSCoding, Property Lists and JSON一个用...
阅读全文
摘要:其实很简单,直接使用系统工具转换即可,以下是步骤:1. 你之前的项目是MRC的2. 里面有 release, dealloc 等.3. 开始转化4. 点击save转化完后,记得把工程重新设置成arc的.
阅读全文
摘要:FreeStreamerhttps://github.com/muhku/FreeStreamerIntroductionFreeStreamer is an audio player engine for iOS and OS X, designed for playing audio strea...
阅读全文
摘要:http://www.cocoachina.com/gamedev/misc/2014/0410/8135.html 好的编程原则跟好的系统设计原则和技术实施原则有着密切的联系。下面的这些编程原则在过去的这些年里让我成为了一名优秀的程序员,我相信,这些原则对任何一个开发人员来说,都能让他的编程能力...
阅读全文
摘要:注意,是iOS7以下的设备,直接上源码,获取mac地址都是为了唯一标识一个设备的,但iOS7设备的mac地址为 020000000000MacAddress.h#include #include #include #include NSString * macaddress();MacAddre...
阅读全文
摘要:面向对象的3大特性,封装继承和多态.我遇到过封装相关的问题,因为初级封装简单,常常暴露出被你封装的接口,进一步进行高级封装隐藏接口的时候才发现,封装是一门学问,而这门学问得从最基础的alloc与init讲起.FatherModel.h#import @interface FatherModel : ...
阅读全文
摘要:Hanekehttps://github.com/hpique/HanekeA lightweight zero-config image cache for iOS.轻量级0配置图片缓存。Haneke resizes images and caches the result on memory and disk. Everything is done in background, allowing for fast, responsive scrolling. Asking Haneke to load, resize, cache and display anappropriately s
阅读全文
摘要:https://github.com/path/FastImageCacheFast Image Cache is an efficient, persistent, and—above all—fast way to store and retrieve images in your iOS application. Part of any good iOS application's user experience is fast, smooth scrolling, and Fast Image Cache helps make this easier.Fast Image Ca
阅读全文
摘要:FlatUIKitFlatUIKit is a collection of iOS components styled with the "Flat UI" aesthetic that we created while buildingGrouper for iPhone. Its design inspiration comes fromFlat UIandKyle Miller. Styling is implemented via categories on/drop-in replacements for existing UIKit components, so
阅读全文
摘要:FMDBhttps://github.com/ccgus/fmdbThis is an Objective-C wrapper around SQLite:http://sqlite.org/这是对 SQLite 的封装:http://sqlite.org/Read the SQLite FAQ:h...
阅读全文
摘要:MAObjCRuntime源码地址:(引入头文件MARTNSObject.h即可,非arc环境下)http://pan.baidu.com/s/1eQ6776Uhttps://github.com/mikeash/MAObjCRuntimeMAObjCRuntime is an ObjC wrapp...
阅读全文
摘要:Dynamically Generated iOS Headershttps://github.com/nst/iOS-Runtime-HeadersHere are iOS Objective-C headers as derived from runtime introspection.The headers were generated usingRuntimeBrowser for iPhone.这个是在运行时导出的所有的 Objective-C 的头文件。这些头文件都是通过RuntimeBrowser for iPhone来生成的。Search(搜索)You can search t
阅读全文
摘要:源码地址 http://pan.baidu.com/s/1zTUR8研究GCD有一段时间,翻译了多篇文章,找了很多的资料,看了很多官方文档,看起来很难,实际上很简单,本人一一进行讲解怎么使用.支持ARC以及非ARC,无论在ARC环境还是在非ARC环境,都需要调用dispatchRelease方法来释...
阅读全文
摘要:+ (void)initializeDescription(描述) Initializes the class before it receives its first message.在这个类第一次接受信息之前初始化这个类.The runtime sends initialize to each class in a program just before the class, or any class that inherits from it, is sent its first message from within the program. The runtime sends th.
阅读全文
摘要:Core Text Objective-C Wrapperhttps://github.com/akosma/CoreTextWrapperIntroduction(介绍)One of the most promising and mysterious new frameworks introduc...
阅读全文
摘要:DFXCoreTextViewhttps://github.com/davefoxy/DFXCoreTextViewA CoreText wrapper for the formatting and display of scrollable text in columns. The helper class DFXCoreTextFont is used as a replacement for UIFont, providing many formatting options only available in CoreText.对 CoreText 的封装,以柱状的方式且可以翻动来显示文
阅读全文
摘要:UIFontWDCustomLoaderhttps://github.com/daktales/UIFontWDCustomLoaderYou can use UIFontWDCustomLoader category to load any compatible font into your iOS projects at runtime without messing with plist, font unknown names or strange magic.The only things you'll have to know are your font filenames
阅读全文
摘要:FrameAccessorhttps://github.com/AlexDenisov/FrameAccessorManual Install(手动安装)All you need to do is drop FrameAccessor files into your project, and add #include "FrameAccessor.h" to the top of files that will use it.你需要做的就是把文件夹FrameAccessor拖到你的工程当中,然后引入头文件FrameAccessor.h即可.Example Usage以前你要
阅读全文
摘要:前几天折腾了下mac系统的VPN fan qiang,今天来写写WIN7的 fan qiang 教程1. 进以下网站,获取免费的VPN服务器地址,用户名,密码,后面要用2.请按如下步骤操作3.进行连接4.做您想做的,亲^_^上gooogle上YouxTube上程序员最爱的Github-完-
阅读全文
摘要:The Amazing Audio Enginehttps://github.com/TheAmazingAudioEngine/TheAmazingAudioEngineThe Amazing Audio Engine is a sophisticated framework for iOS audio applications, built so you don't have to.It is designed to be very easy to work with, and handles all of the intricacies of iOS audio on your
阅读全文
摘要:刚开始折腾 xcode 5.1 自己的svn版本控制,应该很好用,但是用不好,搞了半天也没法把工程传到svn服务器上去.在 xcode 5.1 Soure Control 中弄点击 Check Out...下一步(注意选Subversion)之后 CheckOut 出来即可但是,这个得先需要你的服务...
阅读全文
摘要:UITableView分页上拉加载简单,ARC环境,源码如下,以作备份:原理是,点击最后一个cell,触发一个事件来处理数据,然后reloadDataRootViewController.m + RootViewController.h#import "RootViewController.h"@interface RootViewController ()@property (nonatomic, strong) UITableView *tableView;@property (nonatomic, strong) NSMutableArray *dataSource;
阅读全文
摘要:本人视频教程系列导入AFNetworking 2.0 文件夹,引入头文件AFNetworking.h---------------*使用NSURLSessionDownloadTask来下载一张图片,并带有下载进度(以下两段代码是一起的,注意)NSProgress为iOS7新增加的类 // 定...
阅读全文
摘要:// 直接从RGB取颜色(RGB 0xFF00FF)#define UICOLOR_FROM_RGB(rgbValue) \[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]//获取当前屏幕尺寸#define APP_HEIGHT [UIScreen mainScreen].
阅读全文
摘要:本人从事iOS开发工作,但对特效制作很感兴趣,现提供一份教程,制作本人logo的教程。上图是用Photoshop与After Effects与GIF Movie Gear合力制作的动态图片的logo,现在简单讲讲如何制作吧。1.用Photoshop制作出字母以及背景要点:阴影部分靠渐变工具中的透明渐变产生,这个最终会产生边缘渐变消失的效果(如动画中边缘逐渐消失),很重要,如下图示2.将文件分层导入到After Effects 中3.新建六个固态层,并用钢笔工具在线条上描绘4.对每个固态层使用 3D Stroke 特效,辉光特效(看起来更柔和),以及参数的配置,并根据时间打上关键帧要点:3D S
阅读全文
摘要:INTERACTIVE TRANSITIONS 实时动态动画翻译不到位处敬请谅解,感谢原作者分享精神原文链接http://www.thinkandbuild.it/interactive-transitions/源码下载http://pan.baidu.com/s/1i3HW5FZIt’s been a while and after some long due time off I’m finally back with a new iOS tutorial.I wanted to add some more details to myprevious postshowing you how
阅读全文
摘要:RBBAnimationRBBAnimationis a subclass ofCAKeyframeAnimationthat allows you to declare youranimations using blocksinstead of writing out all the individual key-frames.This gives you greater flexibility when specifying your animations while keeping your code concise.It comes out of the box with arepla
阅读全文
摘要:AnimatedPath动画路径感谢原作者分享精神,有空补上使用教程https://github.com/twotoasters/AnimatedPathAnimatedPath explores using theCAMediaTimingprotocol to interactively control the drawing of a path.AnimatedPath 尝试使用 CAMediaTiming 协议来控制绘制一条路径。Basic usage基本使用方法Step 1: Draw a Path第一步:绘制一条路径Tap around the screen to add poin
阅读全文
摘要:大名鼎鼎的开源网络库AFNetworking 2.0,目前只是翻译了Github上的链接文章,使用教程请点击http://www.cnblogs.com/YouXianMing/p/3651462.htmlhttps://github.com/AFNetworking/AFNetworkingAFNetworking is a delightful networking library for iOS and Mac OS X. It's built on top of theFoundation URL Loading System, extending the powerful h
阅读全文
摘要:GCDObjChttps://github.com/mjmsmith/gcdobjcGCDObjC is an Objective-C wrapper for the most commonly used features of Grand Central Dispatch. It has four...
阅读全文
摘要:ValueTrackingSliderWhat is it?A UISlider Subclass that displays live values in a popUpView. It’s inspired by the implementation foundhere. This versio...
阅读全文
摘要:SWTableViewCellAn easy-to-use UITableViewCell subclass that implements a swippable content view which exposes utility buttons (similar to iOS 7 Mail Application)一个非常易用的UITableViewCell 的子类,实现了左右滑动显示信息视图,提供很多实用的按钮(与iOS7的邮件应用相似)FunctionalityRight Utility ButtonsUtility buttons that become visible on th
阅读全文
摘要:NSPropertyListSerializationThe NSPropertyListSerialization class provides methods that convert property list objects to and from several serialized formats. Property list objects include NSData, NSString, NSArray, NSDictionary, NSDate, and NSNumber objects. These objects are toll-free bridged with t
阅读全文
摘要:AsyncImageViewhttps://github.com/nicklockwood/AsyncImageViewAsyncImageView is a simple extension of UIImageView for loading and displaying images asynchronously on iOS so that they do not lock up the UI.AsyncImageView是关于UIImageView的扩展,用来异步加载和显示图片防止阻塞UI。Purpose(目的)AsyncImageView includes both a simpl
阅读全文
摘要:本人视频教程系列从字典映射到一个对象,这是KVC中的一个方法所提供的,这个方法就是 setValuesForKeysWithDictionary: ,非常好用,不需要你来一一的给对象赋值而直接从字典初始化即可,但用的不好会经常崩溃,本教程就来讨论这些使用的细节.首先,先初始化一个字典,如下所示:--...
阅读全文
摘要:Working with NSURLSession: AFNetworking 2.0简单翻译,有很多错误,看官无法理解处请英文原文对照.http://code.tutsplus.com/tutorials/working-with-nsurlsession-afnetworking-20--mobile-22651by Bart Jacobs3 Feb 2014In the previous installments of this series, we've taken a close look at the NSURLSession API introduced in iOS 7
阅读全文
摘要:Magical Data Modelling Framework for JSONhttps://github.com/icanzilb/JSONModelNew: In version 0.12.0 I added experimental support for exporting JSON m...
阅读全文