// 字符串是否包含有某字符串NSString*title =@"How are you?";
[title containsString:@"are"]yes : 包含are字符串; no : 不包含
[title rangeOfString:@"are"].location ==NSNotFoundyes(即等于NSNotFound) : 不包含; no : 包含
// 字符串开始包含有某字符串[title hasPrefix:@"are"]yes : 包含; no : 不包含
//字符串末尾有某字符串[string hasSuffix:@"bitch"]yes : 包含; no : 不包含
CocoaPods(GitHub)是为iOS提供依赖的管理工具 等价于 Android的Gradle
安装CocoaPods详细过程
https://www.jianshu.com/p/b0dc4e8d872f
CocoaPods 依赖 ruby
快速集成高性能照片浏览器,支持本地及网络相册
https://github.com/CharlinFeng/CorePhotoBroswerVC
网络框架
https://github.com/AFNetworking/AFNetworking
进度条
https://github.com/SVProgressHUD/SVProgressHUD
图片处理
https://github.com/SDWebImage/
直播服务系统
出现的问题:
运行LXPlayerLive源码会报错,因缺少IJKMediaFramework库
需设置 General>Deployment Info> Deployment Target 为8.0
1、视频推流(IOS框架, 框架支持RTMP,由Adobe公司开发。)
https://github.com/LaiFengiOS/LFLiveKit
2、ijkplayer 是基于FFmpeg的跨平台播放器框架,由B站开发。目前已被多个主流直播App集成使用(Android 和IOS框架)。
https://github.com/Bilibili/ijkplayer
3、服务器搭建
nginx+rtmp+ffmpeg
iOS开发之下拉刷新和上拉加载更多
1.简介
常用的下拉刷新的实现方式
(1)UIRefreshControl
(2)EGOTableViewRefresh
(3)AH3DPullRefresh
(4)MJRefresh
iOS 跳转到指定界面方法
self.tabBarController.selectedIndex =0; //更改selectedIndex选择tabbar的选项[self.navigationController popToRootViewControllerAnimated:YES];
或者
[self.navigationController popToRootViewControllerAnimated:YES];
AppDelegate *appDelegate = (AppDelegate *)[[UIApplicationsharedApplication] delegate];
appDelegate.window.rootViewController = [[TabBarViewController alloc]init];
Object-c获得当前系统语言
- (void)getCurrentLanguage
{
NSArray *languages = [NSLocale preferredLanguages];
NSString *currentLanguage = [languages objectAtIndex:0];
NSLog( @"%@" , currentLanguage);
}
判断应用是不是第一次运行
if([[NSUserDefaults standardUserDefaults] boolForKey:@"firstStart"] == NO) {
}
获取AppDelegate
_appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
UITextField https://blog.csdn.net/u012078168/article/details/78630981
iOS跳转到系统设置界面 https://www.jianshu.com/p/463e1b105145
https://www.cnblogs.com/liyingnan/p/5956571.html