https://github.com/YouXianMing
摘要: [文章原地址]http://mobile.tutsplus.com/tutorials/iphone/ios-quick-tip-from-novice-to-expert/翻译有误之处请勿见笑,本人将在文章的部分地方添加注释,并根据需求增减文章内容,在此对原作者辛勤劳作表示感谢iOS Quick Tip: From Novice to ExpertBart Jacobson Jul 29th 2013 with5 commentsEven though it’s possible to learn the essentials of iOS Development in a weekend, 阅读全文
posted @ 2014-03-28 22:00 YouXianMing 阅读(647) 评论(1) 推荐(2) 编辑
摘要: [文章原地址]http://funwithobjc.tumblr.com/个人翻译,难免会有错误,请各位看官海涵,翻译在末尾本人将在文章的部分地方添加注释,并根据需求增减文章内容,在此对原作者辛勤劳作表示感谢How to learn CocoaThis is something any experienced Cocoa developer has been asked at least half a dozen times:"What’s the best way to learn Objective-C/Cocoa?"I have two answers to this 阅读全文
posted @ 2014-03-28 21:49 YouXianMing 阅读(595) 评论(1) 推荐(0) 编辑
摘要: 开发过程中用不到一元一次方程吗?非也,iOS开发中经常会遇到根据某个ScrollView动态偏移量的值来实时设置一个View的透明度,你敢说你不用一元一次方程你能搞定?想把一个动画效果做好,经常会遇到实时设置的问题,本人遇到过多次,总结出经验,提供方法来专门计算一元一次方程的K值以及b值,方便开发.BinaryLinearEquation.h + BinaryLinearEquation.m 提供内联函数以及类方法// Copyright (c) 2014年 Y.X. All rights reserved.//#import NS_INLINE CGFloat calculateSlope. 阅读全文
posted @ 2014-03-28 09:50 YouXianMing 阅读(2154) 评论(0) 推荐(0) 编辑
摘要: UITableView的一些常用操作--------------------------------------------------------------------------------------------// 隐藏TableView中cell之间的分割线tableView.separatorStyle = UITableViewCellSeparatorStyleNone;// 隔行显示不同的颜色if (indexPath.row % 2 == 1){ cell.backgroundColor = ......;}else{ cell.backgroundColor = ... 阅读全文
posted @ 2014-03-27 15:23 YouXianMing 阅读(1069) 评论(0) 推荐(0) 编辑
摘要: KVOKVO属于设计模式中的观察者模式,在观察者模式中,一个对象任何状态的变更都会通知另外的对改变感兴趣的对象。这些对象之间不需要知道彼此的存在,这其实是一种松耦合的设计。当某个属性变化的时候,我们通常使用这个模式去通知其它对象。本人用3种方式来讲述KVO的使用,开始前新建一个对象Student类,用以监控Student类中name属性,源码如下Student.h + Student.m#import @interface Student : NSObject@property (nonatomic, strong) NSString *name;@end#import "Stude 阅读全文
posted @ 2014-03-25 18:00 YouXianMing 阅读(3153) 评论(1) 推荐(0) 编辑
摘要: source https://github.com/jdg/MBProgressHUDMBProgressHUD is an iOS drop-in class that displays a translucent HUD with an indicator and/or labels while work is being done in a background thread. The HUD is meant as a replacement for the undocumented, private UIKit UIProgressHUD with some additional f 阅读全文
posted @ 2014-03-25 10:34 YouXianMing 阅读(1110) 评论(0) 推荐(1) 编辑
摘要: EasyTimelinehttps://github.com/mmislam101/EasyTimelineSometimes you need things to happen at specific times and things.When it's just an event 2.0 seconds later, a performSelector:withObject:afterDelay: is perfect.If it gets a little more complex where you need something happening ever 3.0 secon 阅读全文
posted @ 2014-03-24 14:44 YouXianMing 阅读(797) 评论(3) 推荐(2) 编辑
摘要: JSONJSON相关的,数据彼此间的转化进行了简单地封装,源码如下,支持arc与非arcYXJSON.h + YXJSON.m//// YXJSON.h//// JSONString 与 JSONData 与 字典或者数组互相转化//// Copyright (c) 2014年 YouXian. All rights reserved.//#import @interface YXJSON : NSObject/** 将字典或者数组转换为JSON格式字符串 @return JSON格式字符串 */+ (NSString *)JSONStringWithDictionaryOrArray... 阅读全文
posted @ 2014-03-24 11:42 YouXianMing 阅读(2051) 评论(0) 推荐(0) 编辑
摘要: CoreTelephony获取运营商信息,需通过 CoreTelephony.Framework 中的 CTTelephonyNetworkInfo 和 CTCarrier 对象获取,这些都在iOS 4.0后就有了。现提供源码,支持arc与非arc编译,使用时请引入 CoreTelephony.Framework 框架MobileCountryCode.h + MobileCountryCode.m//// MobileCountryCode.h//// http://en.wikipedia.org/wiki/Mobile_Network_Code//// Created by You... 阅读全文
posted @ 2014-03-24 10:06 YouXianMing 阅读(1114) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-03-21 13:11 YouXianMing 阅读(13) 评论(0) 推荐(0) 编辑