![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
文章平均质量分 58
科科KK
这个作者很懒,什么都没留下…
展开
-
关于iOS播放网络音频
播放网络音频并没有那么难,网上查了写资料。代码很简单。1.第一步 定义全局变量@property(nonatomic,strong)AVPlayer *player;2.第二部 懒加载初始化 - (AVPlayer *)player { if (_player ==nil) { _player = [[AVPlayeral原创 2017-03-03 16:38:53 · 942 阅读 · 0 评论 -
关于iOS textView文字长短限制
主要是在textView的代理方法里限制-(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{ NSString *temp = [textView.text原创 2017-02-25 15:32:46 · 796 阅读 · 0 评论 -
移除导航栏栈数组里的控制器仍然出现的返回箭头
还不能直接移除,会出现返回箭头,应该是再创建一个数组 ,然后再赋值 NSArray *arr =self.navigationController.viewControllers; NSMutableArray *muArr = [NSMutableArrayarray]; for (UIViewController *vcin arr) {原创 2017-03-06 11:41:05 · 343 阅读 · 0 评论 -
iOS 搜索过滤
1.第一步 构建searchBar _searchBar = [[EMSearchBaralloc] initWithFrame:CGRectMake(0,0,self.view.frame.size.width,44)]; _searchBar.delegate =self; _searchBar.placeholde原创 2017-03-07 15:31:10 · 327 阅读 · 0 评论 -
对数组进行排序
//排序for (QuestionListModel *modelin arr) { model.RankQuestionNum = [model.questionNumintValue];}NSSortDescriptor *sortDescriptor = [[NSSortDescriptoralloc] initWithKey:@"Ra原创 2017-03-07 15:38:30 · 406 阅读 · 0 评论