Skip to content

Instantly share code, notes, and snippets.

View wenshyansu's full-sized avatar
😝

Rock wenshyansu

😝
View GitHub Profile
輕輕鬆鬆就養成一位前端工程師 課程資料
課程綱要:
Web 題目雖然廣泛,但有些基礎與實作,
如果能夠先知道將能有效的事半功倍。
我們將介紹基礎的應用與進階的應用知識,
融合成許多小型的實作練習。
// Macros for the top and bottom colors of the gradient
#define kGradientTopColor {0.0f/255.0f, 0.0f/255.0f, 0.0f/255.0f, 1.0f}
#define kGradientBottomColor {209.0f/255.0f, 209.0f/255.0f, 209.0f/255.0f, 1.0f}
// Macro for the area that should be covered by the gradient
#define kGradientBounds self.bounds
// Customize your UIView (e.g., UIView, UILabel, UIButton, etc...) drawRect method
- (void)drawRect:(CGRect)rect
{
@wenshyansu
wenshyansu / gist:2005654
Created March 9, 2012 08:31
Cookie相關
//===================================================================================================
//取得與設定APP內部的cookie
//===================================================================================================
- (void)setCookie:(NSString *)key withValue:(NSString *)value {
NSArray *keys = [NSArray arrayWithObjects:
NSHTTPCookieDomain,
NSHTTPCookieExpires,
NSHTTPCookieName,
NSHTTPCookiePath,
NSHTTPCookieValue, nil];