![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IOS
文章平均质量分 74
qq910441958
这个作者很懒,什么都没留下…
展开
-
Solution:iOS "./compile-ffmpeg.sh all" error"xcrun -sdk iphoneos clang is unable to create an execut
Issue description:[*] make ios toolchain ffmpeg-armv7[*] configurate ffmpeg[*] check OpenSSL[*] configurexcrun -sdk iphoneos clang is unable to create an executable file.C compiler test fai...转载 2018-08-29 15:23:55 · 1093 阅读 · 0 评论 -
IOS - BUG集中营
BUG 1 :导航栏的状态栏显示黑条,导航栏的高度为44原因:UIBarBackground的frame的Y值为0,导致导航栏高度为44,状态栏显示底层控件的颜色解决方案:[self.navigationBar.subviews enumerateObjectsUsingBlock:^(__kindof UIView * _Nonnull obj, NSUInteger idx, BOO...原创 2019-02-14 10:21:46 · 159 阅读 · 0 评论 -
IOS XCode 控制台打印中文方法
①首先定义一个打印方法://打印输出#ifdef DEBUG#define DDLog(format, ...) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], ...原创 2018-12-08 10:22:54 · 2279 阅读 · 0 评论 -
iOS蓝牙开发 --- 唯一标识问题
需求:当我们使用CoreBluetooth系统框架进行蓝牙开发的时候,有时因为某种功能需求需要拿到特定的蓝牙设备进行特定的操作,这就需要我们拿到能够代表特定的蓝牙设备的唯一标识,通过唯一标识来确认是哪一台蓝牙设备 唯一标识的选择:1、蓝牙设备的名字2、蓝牙设备服务的UUID3、继承于父类CBPeer的identifier的标识符属性4、蓝牙的Mac地址//蓝牙设备的...原创 2018-11-19 16:53:10 · 1182 阅读 · 0 评论 -
百度地图开发 之 坑中坑
环境:Xcode 9.3.1 百度地图pods集成后,pod 'BaiduMapKit'此文章是在百度地图用了很久之后才写的,所以集成的坑我这里就不写了坑A: 以前只用pod 'BaiduMapKit'就完事儿了,但是最近百度地图更新了。。。用pods更新后你会发现百度地图将定位功能BMKLocationKit分离出来了,还有相关的一些属性名和函数都修改了解决方法:没办法,得...原创 2018-11-09 16:40:16 · 3260 阅读 · 0 评论 -
WM Weather 隐私政策
WM Weather尊重并保护所有使用服务用户的个人隐私权。为了给您提供更准确、更有个性化的 服务,WM Weather会按照本隐私权政策的规定使用和披露您的个人信息。但WM Weather将以高 度的勤勉、审慎义务对待这些信息。除本隐私权政策另有规定外,在未征得您事先许可的情况下 ,WM Weather不会将这些信息对外披露或向第三方提供。WM Weather会不时更新本隐私权政策 。 您在同意...原创 2018-10-26 11:48:51 · 134 阅读 · 0 评论 -
xcode或者uploader提交不上包的问题
(本文将持续积累更新...) 问题一:提交api包一直处于Authenticating with the iTunes Store状态方法一:方法一可以尝试,如果方法一不行,就用方法二XCode (menubar) → Open developer tool → Application Loader Sign in with your Apple ID Exit Appli...原创 2018-10-20 14:18:44 · 1096 阅读 · 0 评论 -
秒转日期
- (NSString *)getShowDateWithTime:(NSString *)time{ NSDate *timeDate = [[NSDate alloc]initWithTimeIntervalSince1970:[time longLongValue]]; NSDateFormatter *dateFormatter = [[NSDateFormatter ...原创 2017-07-19 14:33:48 · 217 阅读 · 0 评论 -
验证码倒计时
-(void)openCountdown{ __block NSInteger time = 59; //倒计时时间 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_source_t _timer =...原创 2017-07-24 13:23:08 · 146 阅读 · 0 评论 -
tableViewCell左滑出现删除或其它按钮
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath{ returnYES;} - (NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editAc...原创 2017-07-24 13:37:16 · 345 阅读 · 0 评论 -
添加右上UIBarButton
- (void)setRightNavigatorItem{ UIButton *rightBtn = [UIButton buttonWithType:UIButtonTypeCustom]; rightBtn.frame = CGRectMake(0, 0, 40, 44); [rightBtn setImage:IMAGE(@"add_something.png...原创 2017-08-10 14:48:49 · 441 阅读 · 1 评论 -
极光推送的集成与注意事项的向相关处理
1、创建应用:到极光开发平台注册并获取应用的AppKey;2、推送设置:上传APNs证书(包括开发证书和生产证书 --- .p12文件) ①从开发者账户页面左侧入口进入“Certificates, IDs & Profiles” 页面②点击左侧Identifiers --- App IDs创建 App ID,填写 App ID 的 NAME 和 Bundle ID(...原创 2017-09-18 19:52:59 · 881 阅读 · 0 评论 -
计算文字所占大小
//计算文字所占大小- (CGSize)getSizeByString:(NSString*)string AndFontSize:(CGFloat)font{ CGSize size = [string boundingRectWithSize:CGSizeMake(ScreenWidth-46, MAXFLOAT) options:NSStringDrawingUsesLi...原创 2017-09-27 10:00:49 · 1073 阅读 · 0 评论 -
iCarousel详解
DocumentationSupported OS & SDK Versions支持的OS & SDK版本Supported build target - iOS 5.1 / Mac OS 10.7 (Xcode4.3.3, Apple LLVM compiler 3.1)支持的编译目标-iOS 5.1 / Mac OS 10.7 (Xcode 4.3.3, App...转载 2017-10-13 11:44:59 · 745 阅读 · 0 评论 -
UICollectionView的简单使用
项目应用: #import "HomeGroupOrderCell.h"#import "HomeGroupOrderCollectionViewCell.h" @interface HomeGroupOrderCell ()<UICollectionViewDelegate,UICollectionViewDataSource>@pro...转载 2017-10-18 18:29:46 · 311 阅读 · 0 评论 -
重写左上返回按钮
-(void)setLeftNavigatorItem{ self.navigationItem.hidesBackButton=YES; self.navigationItem.leftBarButtonItem=nil; UIButton *backBtn=[[UIButtonalloc]initWithFrame:CGRectMake(0,0, 25,...原创 2017-07-19 09:49:48 · 334 阅读 · 0 评论 -
停顿几秒
//停顿0.3s 查看状态dispatch_time_t timer = dispatch_time(DISPATCH_TIME_NOW, 0.3 * NSEC_PER_SEC);dispatch_after(timer, dispatch_get_main_queue(), ^{[self checkSellerShop];});原创 2017-11-16 11:18:48 · 254 阅读 · 0 评论 -
iOS 给tableView设置contentInset不生效?
self.tableView.contentInset = UIEdgeInsetsMake(100, 0, 0, 0);self.tableView.contentOffset = CGPointMake(0,-100);原创 2019-05-30 09:31:20 · 3718 阅读 · 0 评论