会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LeoMabi
博客园
首页
新随笔
联系
管理
订阅
2016年11月7日
APP 头像选取、等比缩放、圆形头像
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2016-11-07 09:31 LeoMabi
阅读(1)
评论(0)
推荐(0)
2016年3月21日
判断两个View的GRect是否相等
摘要: if (CGRectEqualToRect(self.view.frame, rect)) { // do some stuff }
阅读全文
posted @ 2016-03-21 14:31 LeoMabi
阅读(262)
评论(0)
推荐(0)
2016年3月17日
swift——设置navigationitemtitle的内容以及格颜色
摘要: 1.用UILabel,自定义整个titleview 2.只改变字体颜色
阅读全文
posted @ 2016-03-17 10:02 LeoMabi
阅读(989)
评论(0)
推荐(0)
2016年1月22日
iOS开发--Swift 基于AFNetworking 3.0的网络请求封装
摘要: import UIKitclass InternetDataRequeset { //Post请求时, Body字符串转换成字典方法 //设置类型为静态方法 static func changeStringToDictionary(string : String)->NSDictiona...
阅读全文
posted @ 2016-01-22 15:06 LeoMabi
阅读(560)
评论(0)
推荐(0)
2016年1月21日
iOS——protoco和delegate (事件代理)
摘要: 一:被代理人personOnepersonOne.h#import @protocol SomeThing//需要被代理的事件- (void)doSomeThing:(NSString *)someThing;@end@interface PersonOne : NSObject//有件事情需要别人...
阅读全文
posted @ 2016-01-21 09:53 LeoMabi
阅读(324)
评论(0)
推荐(0)
2016年1月20日
ios变量的property属性设置和意义
摘要: IOS 的@property和@synthesize帮我们轻易的生成对象的getter和setter方法来完成对对象的赋值和访问。但是如果我们如果要动态设置对象的getter和setter方法可以使用@property和@dynamic组合。对象访问方法property的属性设置非常多,诸如:ato...
阅读全文
posted @ 2016-01-20 17:16 LeoMabi
阅读(246)
评论(0)
推荐(0)
iOS应用拨打电话
摘要: 方法一:特点: 直接拨打, 不弹出提示。 并且, 拨打完以后, 留在通讯录中, 不返回到原来的应用。 //拨打电话 - (void)callPhone:(NSString *)phoneNumber { //phoneNumber = "18369......" NSMut...
阅读全文
posted @ 2016-01-20 09:40 LeoMabi
阅读(199)
评论(0)
推荐(0)
2016年1月19日
自定义tableviewCell的分割线
摘要: 第一种: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)
UIwebView的html字符串高度计算
摘要: 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)
OC——UIlabel text的常规应用
摘要: UILabel *downloader = [[UILabel alloc]init]; NSString *downloadCount = [[LibraryArr objectAtIndex:indexPath.row]objectForKey:@"downloadCou...
阅读全文
posted @ 2016-01-19 11:41 LeoMabi
阅读(375)
评论(0)
推荐(0)
下一页
公告