https://github.com/YouXianMing

09 2014 档案

摘要:BTSimpleRippleButtonhttps://github.com/balram3429/btSimpleRippleButtonThis is a custom button for iOS with Ripple effect. It is simple to integrate & ... 阅读全文
posted @ 2014-09-30 20:32 YouXianMing 阅读(432) 评论(0) 推荐(0) 编辑
摘要:TWRPickerSliderhttps://github.com/chasseurmic/TWRPickerSliderUsageAdd the dependency to yourPodfile:用 Podfile 添加依赖关系platform :biospod 'TWRPickerSlider... 阅读全文
posted @ 2014-09-29 21:38 YouXianMing 阅读(246) 评论(0) 推荐(0) 编辑
摘要:iOS8中的定位服务My app that worked fine in iOS 7 doesn't work with the iOS 8 SDK.CLLocationManagerdoesn't return a location, and I don't see my app underSet... 阅读全文
posted @ 2014-09-29 21:07 YouXianMing 阅读(2081) 评论(0) 推荐(0) 编辑
摘要:BKZoomViewhttps://github.com/freshking/BKZoomViewA UIView that will zoom into its parent view. It can be implemented with only three lines of code and... 阅读全文
posted @ 2014-09-28 21:46 YouXianMing 阅读(273) 评论(0) 推荐(0) 编辑
摘要:让两个对象间建立weak关系这是为了给两个对象间建立weak关系,当一个对象被释放时,另外一个对象再获取这个值时就是nil,也就是不持有这个对象:)源码:WeakRelatedDictionary.h 与WeakRelatedDictionary.m//// WeakRelatedDictiona... 阅读全文
posted @ 2014-09-27 18:12 YouXianMing 阅读(507) 评论(0) 推荐(0) 编辑
摘要:DCPathButtonhttps://github.com/Tangdixi/DCPathButtonDCPathButton2.0 is a menu button for iOS. Designed by a famous iOS AppPath.SincePath 4.0, this bea... 阅读全文
posted @ 2014-09-27 07:51 YouXianMing 阅读(577) 评论(0) 推荐(0) 编辑
摘要:RSKImageCropperhttps://github.com/ruslanskorb/RSKImageCropperAn image cropper for iOS like in the Contacts app with support for landscape orientation.... 阅读全文
posted @ 2014-09-25 22:21 YouXianMing 阅读(1723) 评论(0) 推荐(0) 编辑
摘要:实现图片浏览器功能效果:此教程涉及到较多的category的使用,注意.思路:1. 获取一个view在UIWindow中的frame值2. 获取这个view的快照3. 对这个快照进行动画全屏4. 全屏消失后移除掉这个快照源码:NSObject+WeakRelated.h 与NSObject+Weak... 阅读全文
posted @ 2014-09-24 21:54 YouXianMing 阅读(675) 评论(0) 推荐(0) 编辑
摘要:去除Xcode6创建工程时自带的storyboard1. 删除storyboard文件,并在setting里面清空加载storyboard:2. 导入ViewController到appDelegate文件中此处复制粘贴的代码如下: self.window = [[UIWindow alloc] i... 阅读全文
posted @ 2014-09-23 21:45 YouXianMing 阅读(997) 评论(0) 推荐(0) 编辑
摘要:Xcode6中添加pch文件本人视频教程系列1. 新建工程:2. 创建pch文件:3. 在setting里面进行设置:4. 一切尽在不言中:) 阅读全文
posted @ 2014-09-23 21:44 YouXianMing 阅读(31239) 评论(3) 推荐(7) 编辑
摘要:SCViewShakerhttps://github.com/rFlex/SCViewShakerAboutA highly configurable UIView category for shaking a view. You start shaking your views with a on... 阅读全文
posted @ 2014-09-22 09:17 YouXianMing 阅读(395) 评论(0) 推荐(0) 编辑
摘要:DDExpandableButtonhttps://github.com/ddebin/DDExpandableButtonPurpose - 目的DDExpandableButtonis a single-file iOS 5.0+ non-ARC class (ARC compatible) d... 阅读全文
posted @ 2014-09-21 20:56 YouXianMing 阅读(407) 评论(0) 推荐(0) 编辑
摘要:精简加载自定义字体效果图:核心源码:UIFont+WDCustomLoader.m 与UIFont+WDCustomLoader.h//// UIFont+WDCustomLoader.h//// Created by Walter Da Col on 10/17/13.// Copyrigh... 阅读全文
posted @ 2014-09-21 07:52 YouXianMing 阅读(949) 评论(0) 推荐(0) 编辑
摘要:封装NSMapTable并简易的使用NSMapTable是弱引用的字典,可以用来存储对象,该对象消失了也没有关系,对于控制器越级跳转相当有用:)WeakDictionary.h 与WeakDictionary.m//// WeakDictionary.h// 弱引用字典//// http://... 阅读全文
posted @ 2014-09-20 18:24 YouXianMing 阅读(1632) 评论(1) 推荐(0) 编辑
摘要:UINavigationController便于pop的category效果图:这个category是为了方便UINavigationController用于跳转到指定的控制器当中,用于跳级,如果pop的控制器不存在,会直接提示:category源码:UINavigationController+P... 阅读全文
posted @ 2014-09-20 17:54 YouXianMing 阅读(745) 评论(0) 推荐(0) 编辑
摘要:PPiAwesomeButtonhttps://github.com/pepibumur/PPiAwesomeButtonUIButton category with new methods to setup a button with text + FontAwesome Icon. Open A... 阅读全文
posted @ 2014-09-19 09:32 YouXianMing 阅读(867) 评论(0) 推荐(0) 编辑
摘要:JSAnimatedImagesView本人测试的效果:Description:描述Easy to use UIView subclass to quickly add a cool animated carrousel of pictures to your app.Documentation:h... 阅读全文
posted @ 2014-09-18 09:53 YouXianMing 阅读(462) 评论(0) 推荐(0) 编辑
摘要:用CHTCollectionViewWaterfallLayout写瀑布流实现的瀑布流效果图:源码:WaterfallCell.h 与WaterfallCell.m//// WaterfallCell.h// UICollectionView//// Created by YouXianMin... 阅读全文
posted @ 2014-09-17 17:28 YouXianMing 阅读(5025) 评论(0) 推荐(0) 编辑
摘要:CHTCollectionViewWaterfallLayouthttps://github.com/chiahsien/CHTCollectionViewWaterfallLayoutCHTCollectionViewWaterfallLayoutis a subclass ofUICollect... 阅读全文
posted @ 2014-09-17 14:30 YouXianMing 阅读(1089) 评论(0) 推荐(0) 编辑
摘要:MAThemeKithttps://github.com/mamaral/MAThemeKitMAThemeKit provides iOS developers the ability to create a coherent color theme throughout their entire... 阅读全文
posted @ 2014-09-17 09:53 YouXianMing 阅读(326) 评论(1) 推荐(0) 编辑
摘要:使用YXHUD这是本人自己设计的一个类,但功能很不完善,先看看效果:源码:YXHUD.h 与YXHUD.m//// YXHUD.h// UILabel//// Created by YouXianMing on 14-9-16.// Copyright (c) 2014年 YouXianMi... 阅读全文
posted @ 2014-09-16 20:49 YouXianMing 阅读(296) 评论(0) 推荐(0) 编辑
摘要:UITextField使用的一些细节这篇博文是我自己使用UITextField的一些总结,并没有太多营养,并会持续更新。2014.9.15---------------------------------------------------------------------------------... 阅读全文
posted @ 2014-09-15 22:05 YouXianMing 阅读(409) 评论(0) 推荐(0) 编辑
摘要:详解UILabel的adjustsFontSizeToFitWidth值UILabel有一个属性值,叫adjustsFontSizeToFitWidth,看着名字就知道,他是用来让文字自动适应UILabel宽度的。先看看显示效果:测试用源码://// RootViewController.m// ... 阅读全文
posted @ 2014-09-14 21:59 YouXianMing 阅读(14267) 评论(0) 推荐(0) 编辑
摘要:UIImageView-Lettershttps://github.com/bachonk/UIImageView-LettersAn easy, helpful UIImageView category that generates letter initials as a placeholder... 阅读全文
posted @ 2014-09-13 19:24 YouXianMing 阅读(361) 评论(0) 推荐(0) 编辑
摘要:定制NSError效果:系统的NSError是可以自己定制的,以下提供代码来实现并表示如何使用:YXError.h 与YXError.m//// YXError.h// CustomYXError//// Copyright (c) 2014年 Y.X. All rights reserved... 阅读全文
posted @ 2014-09-13 16:50 YouXianMing 阅读(723) 评论(0) 推荐(0) 编辑
摘要:使用截图工具FastStone Capture-谨以此教程献给某位上进的测试人员-FastStone Capture是本人用过的windows平台上最好用的截图工具,界面简洁,功能强大,还支持屏幕录像功能,要说唯一缺少的功能,那就只有不能将录像转换成gif图片了。1. 打开FastStone Cap... 阅读全文
posted @ 2014-09-12 21:48 YouXianMing 阅读(835) 评论(0) 推荐(0) 编辑
摘要:设置导航栏标题的文字属性效果:源码:UINavigationController+TitleTextAttributes.h 与 UINavigationController+TitleTextAttributes.m//// UINavigationController+TitleTextAtt... 阅读全文
posted @ 2014-09-12 15:55 YouXianMing 阅读(1256) 评论(0) 推荐(0) 编辑
摘要:针对接口编程针对接口编程:针对接口编程,不要针对具体编程是依赖倒转原则的另外一种表述。针对接口编程又称为面向接口编程,针对接口编程就是要先设计一系列的接口,把设计和实现分离开。其核心思想是,我们只提供你使用的接口,接口中的代码如何实现的我们不管,你可以更改接口中的内容,但接口的使用方法是永远也不会改... 阅读全文
posted @ 2014-09-11 14:55 YouXianMing 阅读(820) 评论(0) 推荐(0) 编辑
摘要:单一职责原则单一职责原则(Simple responsibility pinciple SRP)就一个类而言,应该仅有一个引起它变化的原因,如果你能想到多于一个的动机去改变一个类,那么这个类就具有多于一个的职责。应该把多于的指责分离出去,分别再创建一些类来完成每一个职责。单一职责原则是软件设计7大原... 阅读全文
posted @ 2014-09-10 10:53 YouXianMing 阅读(590) 评论(1) 推荐(3) 编辑
摘要:iOS7中修改StatusBar的显示颜色效果图如下:在iOS7中想手动修改statusBar的颜色,第一步需要做的就是在plist文件中设置View controller-based status bar appearance值为NO第二步就是在代码中实现了,如下所示://// RootView... 阅读全文
posted @ 2014-09-09 16:14 YouXianMing 阅读(494) 评论(0) 推荐(0) 编辑
摘要:制作自己的字库并在工程中显示此篇教程操作很复杂,但有着实用价值,可以用来提取网上下载的字库并制作自己的字库拿到工程项目中去显示。有时候加载自定义中文字体会非常大,动辄8-9M大小的中文字库还是很占大小的,而我们也只需要里面的几个汉字,这篇博文就是做这事情的。首先是制作字体篇1. 下载工具2. 下载字... 阅读全文
posted @ 2014-09-07 08:13 YouXianMing 阅读(1403) 评论(0) 推荐(0) 编辑
摘要:用字典给Model赋值并支持map键值替换这个是昨天教程的升级版本,支持键值的map替换。源码如下:NSObject+Properties.h 与NSObject+Properties.m//// NSObject+Properties.h//// Created by YouXianMing ... 阅读全文
posted @ 2014-09-06 06:54 YouXianMing 阅读(1067) 评论(0) 推荐(0) 编辑
摘要:用字典给Model赋值此篇教程讲述通过runtime扩展NSObject,可以直接用字典给Model赋值,这是相当有用的技术呢。源码:NSObject+Properties.h 与NSObject+Properties.m//// NSObject+Properties.h//// Create... 阅读全文
posted @ 2014-09-05 21:10 YouXianMing 阅读(629) 评论(1) 推荐(1) 编辑
摘要:通过runtime打印出对象所有属性的值今天给给大家提供的关于NSObject的category,通过runtime打印属性的值,相当有用哦,以后你再也不用每个对象都通过NSLog来逐个打印属性值了。源码:NSObject+Properties.h 与NSObject+Properties.m///... 阅读全文
posted @ 2014-09-04 19:43 YouXianMing 阅读(1429) 评论(2) 推荐(0) 编辑
摘要:加密解密再也不是你的噩梦也许你在你的项目中用过加密解密,诸如AES加解密、DES加解密等等加密算法。你从Github上下载了一份源码,导入到自己的项目当中,导入头文件,使用,欧了。其实事情远没有你想得这么简单。你需要加密字符串对吧,你把字符串转换成了NSData,然后你需要提取出这个NSData中的... 阅读全文
posted @ 2014-09-03 11:19 YouXianMing 阅读(446) 评论(2) 推荐(0) 编辑
摘要:通过runtime获取对象相关信息在这里,本人给大家提供一个runtime关于NSObject的扩展,用来显示各种NSObject中的信息,这有助于你来分析类的组成:)先准备以下类供测试:Model.h 与 Model.m//// Model.h// Runtime//// Copyright... 阅读全文
posted @ 2014-09-02 21:47 YouXianMing 阅读(605) 评论(0) 推荐(0) 编辑
摘要:UITableView的UITableViewStyleGrouped以下图例就是分组UITableViewStyleGrouped的样式本人提供快速集成的方法,不弄脏你那双手:)源码:TableViewData.h//// TableVewData.h// Sections//// Copy... 阅读全文
posted @ 2014-09-01 22:25 YouXianMing 阅读(1687) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示