04 2015 档案

摘要:直接上代码吧var positionX:CGFloat = 10var positionY:CGFloat = 20var tmpX:Float = 30var tmpY:Float = 40//运算的时候,一定要注意所有的数据类型保持一致tmpx = Float(positionX) * Floa... 阅读全文
posted @ 2015-04-17 03:24 shidaying 阅读(3994) 评论(0) 推荐(0)
摘要:一,popViewControllerAnimated[self.navigationController popViewControllerAnimated:YES];二,popToRootViewControllerAnimated[self.navigationController popTo... 阅读全文
posted @ 2015-04-10 18:13 shidaying 阅读(360) 评论(0) 推荐(0)
摘要:一,在需要的地方添加监听[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onKeyboardWillShowNotification:) ... 阅读全文
posted @ 2015-04-10 15:57 shidaying 阅读(316) 评论(0) 推荐(0)
摘要:class func sharedInstance() -> GlobalConstant { struct Singleton{ static var predicate:dispatch_once_t = 0 static var instance:GlobalCons... 阅读全文
posted @ 2015-04-01 10:57 shidaying 阅读(190) 评论(0) 推荐(0)