Skip to content

Instantly share code, notes, and snippets.

View tangyumeng's full-sized avatar

tangyumeng tangyumeng

View GitHub Profile
@tangyumeng
tangyumeng / gist:8254351
Created January 4, 2014 11:17
performBlockAfterDelay
#import <Foundation/Foundation.h>
@interface NSObject (PerformBlockAfterDelay)
// Perform something after a slight delay
- (void)performBlock:(void (^)(void))block afterDelay:(NSTimeInterval)delay;
@end
@tangyumeng
tangyumeng / 自定义UITextField外观
Created January 10, 2014 08:17
自定义UITextField外观
http://blog.sina.com.cn/s/blog_671d2e4f0101d90v.html
@tangyumeng
tangyumeng / 一些 iOS 调试技巧.md
Created January 12, 2014 04:32
一些 iOS 调试技巧

    NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:
                                [UIColor whiteColor], UITextAttributeTextColor, nil];
    [[UINavigationBar appearance] setTitleTextAttributes:dictionary];
 
<pre><code>
NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:
[UIColor whiteColor], UITextAttributeTextColor, nil];
[[UINavigationBar appearance] setTitleTextAttributes:dictionary];
</code></pre>
@tangyumeng
tangyumeng / NSPredicate
Created January 15, 2014 03:36
NSPredicate
http://blog.csdn.net/ztp800201/article/details/8116081
@tangyumeng
tangyumeng / Xcode TextMate theme
Created January 22, 2014 05:20
xcode TextMate theme
http://audioplastic.org/blog/2013/01/09/cobalt/
@tangyumeng
tangyumeng / oc 两端式构造
Created January 23, 2014 06:48
oc两段式构造
http://starbugs.diandian.com/post/2012-07-11/40029263575
http://starbugs.diandian.com/post/2013-03-28/40048398351
@tangyumeng
tangyumeng / model 序列化 json
Created January 27, 2014 05:20
model 序列化 json
http://iosdevelopertips.com/core-services/ios-and-json-part-1-serialize-objects-to-json.html?wt=3&utm_source=iOSDevTips&utm_campaign=wordtwit&utm_medium=twitter
https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html
https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072-CH4-SW20