IOS 开发

// 字符串是否包含有某字符串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 : 不包含

CocoaPodsGitHub)是为iOS提供依赖的管理工具 等价于 Android的Gradle

安装CocoaPods详细过程

https://www.jianshu.com/p/b0dc4e8d872f

CocoaPods 依赖 ruby

https://gems.ruby-china.com


快速集成高性能照片浏览器,支持本地及网络相册

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


iOS10适配——相机,通讯录,麦克风等权限设置

https://www.cnblogs.com/liyingnan/p/5956571.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容