会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
浪味小仙女
来日方长,厚积薄发。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
15
下一页
2016年7月21日
最近因为textview高度问题疯了疯了疯了
摘要: 1.textview有\r\n什么的就算不明白,我的文本最后一个字符是\r,结果我死活算不对,最后发现了==! NSString * str = [_messageModels[indexPath.row].text stringByReplacingOccurrencesOfString:@"\r
阅读全文
posted @ 2016-07-21 22:14 浪味小仙女
阅读(1390)
评论(0)
推荐(0)
2016年7月19日
判断是否打开了相机
摘要: NSString *mediaType = AVMediaTypeVideo;//读取媒体类型 AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:mediaType];//读取设备授
阅读全文
posted @ 2016-07-19 11:27 浪味小仙女
阅读(284)
评论(0)
推荐(0)
判断是否可以使用麦克风
摘要: if ([[AVAudioSession sharedInstance] respondsToSelector:@selector(requestRecordPermission:)]) { [[AVAudioSession sharedInstance] requestRecordPermissi
阅读全文
posted @ 2016-07-19 11:19 浪味小仙女
阅读(331)
评论(0)
推荐(0)
2016年7月18日
tabbar加小红点
摘要: 原文 http://blog.csdn.net/u013531246/article/details/44460115 #import <UIKit/UIKit.h> @interface UITabBar (badge) - (void)showBadgeOnItemIndex:(int)inde
阅读全文
posted @ 2016-07-18 10:58 浪味小仙女
阅读(161)
评论(0)
推荐(0)
2016年7月11日
textView富文本点击事件
摘要: NSDictionary * attDic = [NSDictionary dictionaryWithObjectsAndKeys:RGBCOLOR(31, 132, 204),NSForegroundColorAttributeName,[NSNumber numberWithInteger:N
阅读全文
posted @ 2016-07-11 15:48 浪味小仙女
阅读(1222)
评论(0)
推荐(0)
通过某一个符号截取字符串
摘要: NSArray<NSString*> *senderArray = [[NSString stringWithFormat:@"%@",URL] componentsSeparatedByString:@"_"];
阅读全文
posted @ 2016-07-11 15:43 浪味小仙女
阅读(945)
评论(0)
推荐(0)
2016年6月24日
局部富文本
摘要: UILabel *testLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 100, 320, 30)]; testLabel.backgroundColor = [UIColor lightGrayColor]; testLabel.textA
阅读全文
posted @ 2016-06-24 16:50 浪味小仙女
阅读(119)
评论(0)
推荐(0)
判断是否包含某个字符串
摘要: if ([string rangeOfString:str].location != NSNotFound) { //YES }else{ //NO }
阅读全文
posted @ 2016-06-24 16:15 浪味小仙女
阅读(151)
评论(0)
推荐(0)
2016年6月6日
UIProgressView 圆角
摘要: 里面外面都变成圆角 不用图片 直接改变layer 重点是里面外面都是圆角哦 for (UIImageView * imageview in self.progress.subviews) { imageview.layer.cornerRadius = 5; imageview.clipsToBou
阅读全文
posted @ 2016-06-06 15:36 浪味小仙女
阅读(3646)
评论(0)
推荐(1)
2016年5月29日
如何判断字符串里都是空格
摘要: 如何判断字符串里都是空格 [[str stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] length] 除去空格后的长度 如果为0 就都是空格
阅读全文
posted @ 2016-05-29 14:29 浪味小仙女
阅读(3041)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
15
下一页
公告