会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
柳仙慧子
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
9
10
11
12
13
14
下一页
2016年7月12日
HTML
摘要: HTML 文本格式化标签 标签 描述 <b> 定义粗体文本 <em> 定义着重文字 <i> 定义斜体字 <small> 定义小号字 <strong> 定义加重语气 <sub> 定义下标字 <sup> 定义上标字 <ins> 定义插入字 <del> 定义删除字 HTML "计算机输出" 标签 标签 描
阅读全文
posted @ 2016-07-12 14:45 柳仙慧子
阅读(85)
评论(0)
推荐(0)
2016年7月6日
获取当前日期
摘要: 1. //获取当前时间,日期 NSDate *dateTime = [NSDate date]; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"YYYY/
阅读全文
posted @ 2016-07-06 16:37 柳仙慧子
阅读(153)
评论(0)
推荐(0)
2016年7月2日
iOS NSMutableArray添加NSInteger元素
摘要: NSMutableArray *array = [[NSMutableArray alloc] init]; NSInteger num = 7; NSNumber *number = [NSNumber numberWithInt:num]; [array addObject:number]; N
阅读全文
posted @ 2016-07-02 14:58 柳仙慧子
阅读(2970)
评论(0)
推荐(0)
2016年6月30日
iOS label换行 自适应
摘要: //自动折行设置 addressDetailLab.lineBreakMode = NSLineBreakByWordWrapping; addressDetailLab.numberOfLines = 0; //自适应 // CGRect rect = [addressDetailLab.text
阅读全文
posted @ 2016-06-30 14:28 柳仙慧子
阅读(3392)
评论(0)
推荐(0)
2016年6月29日
iOS高德地图自定义annotation添加不同图片
摘要: 1.model类里面添加index #import <MAMapKit/MAMapKit.h> #import <AMapSearchKit/AMapCommonObj.h> @interface POIAnnotation : NSObject <MAAnnotation> - (id)initW
阅读全文
posted @ 2016-06-29 20:03 柳仙慧子
阅读(8860)
评论(0)
推荐(0)
2016年6月23日
@property(nonatomic) UIViewAutoresizing autoresizingMask;
摘要: 在 UIView 中有一个autoresizingMask的属性,它对应的是一个枚举的值(如下),属性的意思就是自动调整子控件与父控件中间的位置,宽高。 1 2 3 4 5 6 7 8 9 enum { UIViewAutoresizingNone = 0, UIViewAutoresizingFl
阅读全文
posted @ 2016-06-23 18:50 柳仙慧子
阅读(115)
评论(0)
推荐(0)
2016年6月22日
HTML
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript" src="../script/api.js"></script> </
阅读全文
posted @ 2016-06-22 16:58 柳仙慧子
阅读(98)
评论(0)
推荐(0)
图片压缩
摘要: ///原图压缩(压缩完直接nsdata类型保存到本地writeToFile) - (NSData *)resetSizeOfImageData:(UIImage *)source_image { NSData *data; if (UIImagePNGRepresentation(source_im
阅读全文
posted @ 2016-06-22 13:36 柳仙慧子
阅读(153)
评论(0)
推荐(0)
NSFileManager创建文件夹
摘要: NSFileManager*fileManager = [[NSFileManager alloc] init]; NSString *pathDocuments = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDo
阅读全文
posted @ 2016-06-22 11:27 柳仙慧子
阅读(778)
评论(0)
推荐(0)
2016年6月21日
解决编译时出现的警告:format string is not a string literal (potentially insecure)
摘要: NSLog([NSString stringWithFormat:@"%@/%@B.jpg", createDir, uuid]);//这是我的写法 应该写成 NSString *str = [NSString stringWithFormat:@"%@/%@B.jpg", createDir, u
阅读全文
posted @ 2016-06-21 23:20 柳仙慧子
阅读(11581)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
下一页
公告