- 博客(14)
- 收藏
- 关注
原创 iOS腾讯IM接入
1 pod 或者手动导入imsdk2 IM会提供一个SDKAppID 和一个secret长串,工程里只用到SDKAppID 长串给后台配置,并用接口返回给前端验证并登陆3 appdelegate 中//初始化ui库(自己写UI可以不调用) [[TUIKit sharedInstance] setupWithAppId:[kSdkAppId integerValue]]; ...
2019-08-29 14:55:37 3022
原创 iOS 即时聊天键盘处理
1 让tableview 滚动到最底层方法if (_dataArr.count>0) { NSIndexPath *ip = [NSIndexPath indexPathForRow:_dataArr.count-1 inSection:0]; dispatch_async(dispatch_get_main_queue(), ^{ ...
2019-07-30 14:37:47 635
原创 iOS cell 里需要创建n个元素
- (void)createBackView{ UIView *backView = [[UIView alloc]initWithFrame:CGRectMake(Width(10), 0, kScreenWidth-Width(20), m_frame.size.height -Height(10))]; backView.backgroundColor = [UIColor ...
2019-07-03 17:44:16 253
原创 iOS 统计代码行
使用终端输入 命令行,别拉空格就行首先cd 进入工程文件然后 find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" -or -name "*.h" -or -name "*.rss" ")" -print | xargs wc -l图一图二...
2019-06-10 10:29:36 170
原创 iOS 横屏跳竖屏
先变竖屏再跳转1跳转 BullWeakSelf(weakSelf) void(^pushAction)(void) = ^{ weakSelf.lssendgiftView.hidden = YES; weakSelf.gdsendGiftView.hidden = YES; NewMyWalletController...
2019-05-07 16:46:53 619
原创 Xcode控制台打印集锦
1:CUIThemeStore: No theme registered with id=0 问题解决方法在 Assets.xcassets 文件夹中添加一张图片之后,Xcode控制台就不会再打印,删除图片之后也不会在打印了...
2019-04-17 10:09:48 848
原创 iOS UICollectionView 使用
应用场景:UICollectionView 横滑和竖滑只支持一种,要是想兼用 必须套一下两个UICollectionView一起使用基本使用1:首先需要先添加UICollectionView的代理:UICollectionViewDelegate UICollectionViewDataSource UICollectionViewDelegateFlowLayout2:UI...
2019-04-16 17:56:28 1936
原创 iOS App跳转权限设置
开启照相机#import <AVFoundation/AVFoundation.h>- (void)getCameraJurisdiction { NSString *mediaType = AVMediaTypeVideo;// Or AVMediaTypeAudio AVAuthorizationStatus authStatus = [AVCaptur...
2019-04-12 18:26:31 6295
原创 iOS 访问权限设置
iOS 10 以后NSAppleMusicUsageDescription App需要您的同意,才能访问媒体资料库NSBluetoothPeripheralUsageDescription App需要您的同意,才能访问蓝牙NSCalendarsUsageDescription App需要您的同意,才能访问日历NSCameraUsageDescription App需要您的同意,才...
2019-04-12 17:33:47 1339
原创 iOS 禁止侧滑
此方法为重写手势,系统原来的方法,部分页面会首次失效@property (weak, nonatomic) id<UIGestureRecognizerDelegate> restoreInteractivePopGestureDelegate;- (void)viewDidLoad { [super viewDidLoad]; // Do any addit...
2019-04-10 09:28:27 1148
原创 iOS微博web网页出现的天坑 (斗鱼App 当前版本5.600有这个bug)
最近项目直播那块加了点新需求,需要上个版本,由于公司没有专业测试,所以,自测很重要,出现bug就得自己背锅。。。无意之中发现横屏直播的时候,友盟集成的微博web分享,有严重大坑。复现bug场景 :1:必须有横屏的分享,一般直播,视频较多。2:卸载手机上的微博3:横屏的时候点击分享微博,这时候会调微博的web网页,4:也不需要登录微博那个网页,左上角有一个关闭的按钮,点击关闭...
2019-04-02 10:28:43 494
原创 UITextFiled使用 + 不常见的需求
基本使用-(void)createTextFiled {UITextField *textView = [[UITextField alloc] initWithFrame:CGRectMake(LineX(30), LineX(175), kScreenWidth - LineX(60), LineX(20))]; textView.textColor = rgb(34, 34...
2019-03-28 18:27:35 270
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人