摘要: 打开Xcode ,运行错误提示 某一个第三方库不包含bitcode? bitcode?是什么,以前没有注意过。 查阅了一下官方文档,在App Distribution Guide–App Thinning (iOS, watchOS)一节中,找到了下面这样一个定义: Bitcode is an in 阅读全文
posted @ 2017-12-18 14:44 我叫小小虎 阅读(5984) 评论(0) 推荐(0) 编辑
摘要: 1 ,13位时间戳转时间 stamp = 1513478681000 - (NSString *)timeStampConvertToDateWithStamp:(double )stamp { // 把时间戳转化成时间 NSTimeInterval interval = stamp / 1000. 阅读全文
posted @ 2017-12-14 14:48 我叫小小虎 阅读(6251) 评论(0) 推荐(0) 编辑
摘要: //奖获取的数组或者字典存入 financeArr 数据数组 1。//本地保存 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); //获取完整路径 NSS 阅读全文
posted @ 2017-11-07 09:18 我叫小小虎 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 1。//获取当前时间戳 - (NSInteger )getCurrentTimeStamp { NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateStyle:NSDateFormatterMe 阅读全文
posted @ 2017-11-07 09:11 我叫小小虎 阅读(4641) 评论(0) 推荐(0) 编辑
摘要: - (void)addPraiseAnimation { UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(kUIScreenWidth-45, kUIScreenHeight/1.7-55-64, 25, 2 阅读全文
posted @ 2017-08-02 14:06 我叫小小虎 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 1 ,声明变量 /* 遮罩window */ @property(nonatomic,strong)UIWindow *coverWindow; /* 弹框 */ @property(nonatomic,strong)UIView *alertView; /* 弹框按钮 */ @property(n 阅读全文
posted @ 2017-06-14 13:48 我叫小小虎 阅读(1730) 评论(0) 推荐(0) 编辑
摘要: 1. rangeOfString:截取指定字符串的长度; 2. substringToIndex:7:截取从0 索引到指定索引(7)长度的字符串 (从0到7)3. substringFromIndex:9:截取从指定索引(9)到末尾长度的字符串 (从9到0)4. substringWithRange 阅读全文
posted @ 2017-06-07 14:41 我叫小小虎 阅读(2197) 评论(0) 推荐(0) 编辑
摘要: 1. 声明全局变量 UIView *headView; 表头部View UIButton *financeBtn; //金融头条Btn UIButton *companyNewsBtn;//公司新闻Btn 2.在viewDidLoad里面 - (void)viewDidLoad { [super v 阅读全文
posted @ 2017-06-02 09:24 我叫小小虎 阅读(1956) 评论(0) 推荐(0) 编辑
摘要: NSString *textStr = @"系统将于2017年4月20日17~19点间进行升级,在升级期间系统将停止使用,请你提前处理系统中待处理任务。"; NSRange startRange = [textStr rangeOfString:@"于"]; NSRange endRange = [ 阅读全文
posted @ 2017-05-23 13:34 我叫小小虎 阅读(793) 评论(0) 推荐(0) 编辑
摘要: - (void)viewWillAppear:(BOOL)animated { //设置导航栏背景图片为一个空的image,这样就透明了 [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init 阅读全文
posted @ 2017-05-17 10:46 我叫小小虎 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: //初始化textfield并设置位置及大小 //设置边框样式,只有设置了才会显示边框样式 //输入框中是否有个叉号,在什么时候显示,用于一次性删除输入框中的内容 //设置键盘的样式 //return键变成什么键 委托方法 - (void)textFieldEditChanged:(UITextFi 阅读全文
posted @ 2017-05-17 10:35 我叫小小虎 阅读(1233) 评论(0) 推荐(0) 编辑
摘要: .h 文件声明三个变量 接受坐标和title .m文件 这里 _mapView1.showsUserLocation = YES; 我这里不知道为何不行 , _mapView1.showsUserLocation = true;确可以显示,没搞明白! 阅读全文
posted @ 2017-04-14 11:06 我叫小小虎 阅读(800) 评论(0) 推荐(0) 编辑
摘要: .h 文件 导入需要的头文件 #import<BaiduMapAPI_Map/BMKMapView.h> #import<BaiduMapAPI_Location/BMKLocationService.h> #import<BaiduMapAPI_Search/BMKGeocodeSearch.h> 阅读全文
posted @ 2017-04-14 10:49 我叫小小虎 阅读(309) 评论(0) 推荐(0) 编辑
摘要: NSString *title = [NSString stringWithFormat:@"<p><font color=\"black\" size=\"4\"><strong>%@</strong></font> </p>",_webTitle]; //设置webView 标题打大小和颜色 以 阅读全文
posted @ 2017-04-10 14:02 我叫小小虎 阅读(929) 评论(0) 推荐(0) 编辑
摘要: 1 时间戳转换 - (NSString *)updateTimeForRow:(NSString *)createTimeString { // 获取当前时时间戳 1466386762.345715 十位整数 6位小数 NSTimeInterval currentTime = [[NSDate da 阅读全文
posted @ 2017-04-10 11:49 我叫小小虎 阅读(478) 评论(0) 推荐(0) 编辑