只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-11-07 09:31 LeoMabi 阅读(1) 评论(0) 推荐(0)
摘要: if (CGRectEqualToRect(self.view.frame, rect)) { // do some stuff } 阅读全文
posted @ 2016-03-21 14:31 LeoMabi 阅读(262) 评论(0) 推荐(0)
摘要: 1.用UILabel,自定义整个titleview 2.只改变字体颜色 阅读全文
posted @ 2016-03-17 10:02 LeoMabi 阅读(989) 评论(0) 推荐(0)
摘要: import UIKitclass InternetDataRequeset { //Post请求时, Body字符串转换成字典方法 //设置类型为静态方法 static func changeStringToDictionary(string : String)->NSDictiona... 阅读全文
posted @ 2016-01-22 15:06 LeoMabi 阅读(560) 评论(0) 推荐(0)
摘要: 一:被代理人personOnepersonOne.h#import @protocol SomeThing//需要被代理的事件- (void)doSomeThing:(NSString *)someThing;@end@interface PersonOne : NSObject//有件事情需要别人... 阅读全文
posted @ 2016-01-21 09:53 LeoMabi 阅读(324) 评论(0) 推荐(0)
摘要: IOS 的@property和@synthesize帮我们轻易的生成对象的getter和setter方法来完成对对象的赋值和访问。但是如果我们如果要动态设置对象的getter和setter方法可以使用@property和@dynamic组合。对象访问方法property的属性设置非常多,诸如:ato... 阅读全文
posted @ 2016-01-20 17:16 LeoMabi 阅读(246) 评论(0) 推荐(0)
摘要: 方法一:特点: 直接拨打, 不弹出提示。 并且, 拨打完以后, 留在通讯录中, 不返回到原来的应用。 //拨打电话 - (void)callPhone:(NSString *)phoneNumber { //phoneNumber = "18369......" NSMut... 阅读全文
posted @ 2016-01-20 09:40 LeoMabi 阅读(199) 评论(0) 推荐(0)
摘要: 第一种:addsubviewUIView *line = [[UIView alloc]initWithFrame:CGRectMake(10, cellH-0.5, DEVW-10, 0.5)]; line.backgroundColor = ViewLineColor;第二种:自绘... 阅读全文
posted @ 2016-01-19 17:29 LeoMabi 阅读(547) 评论(0) 推荐(0)
摘要: if (!webviewHasLoaded && pdIntroduce.length>0) { webView = [[UIWebView alloc]initWithFrame:CGRectMake(10, 30 , DEVW-20, webviewH)]; ... 阅读全文
posted @ 2016-01-19 17:14 LeoMabi 阅读(701) 评论(0) 推荐(0)
摘要: UILabel *downloader = [[UILabel alloc]init]; NSString *downloadCount = [[LibraryArr objectAtIndex:indexPath.row]objectForKey:@"downloadCou... 阅读全文
posted @ 2016-01-19 11:41 LeoMabi 阅读(375) 评论(0) 推荐(0)