摘要:
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{ //当scrollview中content的竖直位移加上scrollView的高度大于等于content的总高度时,表示用户划到scrollview的底端 if ((scrollVie...
阅读全文
posted @ 2015-09-08 14:33
ximenchuixie
阅读(188)
推荐(0)
摘要:
1. 在工程文件中选择支持的语言,“Localizations”2. 添加资源文件 Localizable.strings, (app默认从该资源文件读取字符串)3. 通过NSLocalizedString(@"hello", nil); 函数读取字符串 (将@“hello”换成相应字符串的key)...
阅读全文
posted @ 2015-09-08 14:05
ximenchuixie
阅读(254)
推荐(0)
摘要:
在工程文件中找到以下设置"Launch Screen File"只支持iOS8以上版本,如果用之,则self.view.frame.size返回的结果为正常的当前view尺寸。"Launch Images Source",当选择此项时, 需要在Images.xcassets中上传启动画面的图片,se...
阅读全文
posted @ 2015-09-07 17:23
ximenchuixie
阅读(278)
推荐(0)
摘要:
viewDidLoad中设置以下属性self.automaticallyAdjustsScrollViewInsets = NO;
阅读全文
posted @ 2015-09-06 18:27
ximenchuixie
阅读(171)
推荐(0)
摘要:
@property (copy) nsmutablearray *array-copy, as implemented by mutable Cocoa classes, alwaysreturns their immutable counterparts. Thus, when an NSMuta...
阅读全文
posted @ 2015-08-18 16:44
ximenchuixie
阅读(183)
推荐(0)
摘要:
UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectZero];NSString *myUserAgent = [webView stringByEvaluatingJavaScriptFromString:@"navigator.u...
阅读全文
posted @ 2015-07-22 18:17
ximenchuixie
阅读(568)
推荐(0)
摘要:
https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.localsettings.ASPxvar localSettings = Windows.Storage.Applicatio...
阅读全文
posted @ 2015-06-04 20:27
ximenchuixie
阅读(222)
推荐(0)
摘要:
HttpBaseProtocolFilter httpBaseProtocolFilter = new HttpBaseProtocolFilter(); HttpCookieManager httpCookieManager = httpBaseProtoc...
阅读全文
posted @ 2015-06-04 20:25
ximenchuixie
阅读(218)
推荐(1)
摘要:
https://monkeyweekend.wordpress.com/2014/10/23/how-to-send-text-json-or-files-using-httpclient-postasync/using Windows.Web.Http;using Windows.Data.Jso...
阅读全文
posted @ 2015-06-04 14:08
ximenchuixie
阅读(225)
推荐(0)
摘要:
https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/TheAppLifeCycle/TheAppLifeCycle.htmlhttps://developer...
阅读全文
posted @ 2015-06-01 17:37
ximenchuixie
阅读(294)
推荐(0)