- 博客(20)
- 收藏
- 关注
原创 ChivalrousDisappear Privacy Policy Statement
e company respects and protects the privacy of all users who use the service. In order to provide you with more accurate and personalized services, we will use and disclose your personal information i...
2019-10-16 12:41:59
329
原创 WarriorSupperzzle Privacy Policy Statement
he company respects and protects the privacy of all users who use the service. In order to provide you with more accurate and personalized services, we will use and disclose your personal information ...
2019-09-30 19:02:52
461
原创 Wukong Biography Privacy Policy Statement
Wukong Biography Privacy Policy Statement The company respects and protects the privacy of all users who use the service. In order to provide you with more accurate and personalized services, we w...
2019-09-11 13:10:06
457
原创 生活家
生活家 The company respects and protects the privacy of all users who use the service. In order to provide you with more accurate and personalized services, we will use and disclose your personal inf...
2019-09-09 13:26:29
403
原创 Vue 引入全局以及部分js css
js 全局 在main.js中导入 import utils from './utils/utils.js' 声明 Vue.prototype.$utils = utils 在vue 里面就this.$utils.click() js 单独 此方法用在单个Vue文件中,通过import {xxx} from ‘路径’引入你的方法 css 全局 在main.js 引入impor...
2018-11-13 15:47:12
1940
原创 webStorm 搭建vue 开发环境
安装note.js环境 创建项目 vue init webpack myprojec next 下一步 下一步 Use ESLint to lint your code? (Y/n);使用ESlint语法?N (因为在工程的时候缺少一个空格都编译不过) OK克欧克 打开项目 配置npm 运行 npm run dev hello Vue...
2018-11-13 15:17:51
500
原创 iOS获取当前viewctonroller
- (UIViewController *)currentViewController { UIViewController *vc = self.window.rootViewController; if ([vc isKindOfClass:[UITabBarController class]]) { UITabBarController *tab
2016-10-21 13:58:11
564
原创 iOS 处理4.4.3 变成4.43
//处理4.4.3 变成4.43 - (CGFloat )systemVersion:(NSString *)verSionStr{ NSRange fRange = [verSionStr rangeOfString:@"."]; CGFloat version = 0.0f; if(fRange.locati
2016-10-21 13:55:47
319
原创 iOS 视频AVFoundation使用
iOS9弃用了MPMoviePlayerViewController 使用了AVPlayerViewViewController 框架 其中: 1.AVPlayer 播放音视频 2.AVPlayerItem 音频的对象 3.AVPlayerLayer 播放显示视频的图层界面 4.AVPlayerViewController 调节控件 流程: AVPlayer(
2016-07-21 15:51:50
1468
原创 UICollectionView 使用
1.注意事项 边距计算问题(上左下右) -(UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section { return
2016-07-19 19:09:39
279
转载 Masonry使用注意
简要 自动布局最重要的是约束:UI元素间关系的数学表达式。约束包括尺寸、由优先级和阈值管理的相对位置。它们是添加剂,可能导致约束冲突 、约束不足造成布局无法确定 。这两种情况都会产生异常。 使用前:AutoLayout关于更新的几个方法的区别 setNeedsLayout:告知页面需要更新,但是不会立刻开始更新。执行后会立刻调用layoutSubviews。layoutIfNee
2016-07-19 19:01:44
335
原创 Ruby 安装
提示 Error fetching http://ruby.taobao.org/: bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz) 则 bogon:~ ComarMet$ gem sources --add https://ruby.taobao.org/ --remove https://rubyg
2015-10-30 15:30:57
699
原创 iOS 去掉UINavigationBar 下面灰色的线
[[UINavigationBar appearance] setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault]; [[UINavigationBar appearance] setShadowImage:[[UIImage alloc]init]];
2015-07-10 14:20:38
1239
原创 iOS 切换两个RootViewController动画 类似网易云音乐
typedef void (^Animation)(void); NavLogVC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; Animation animation = ^{ BOOL oldState = [UIView areAnimationsEnabled];
2015-05-27 10:56:54
4419
原创 iOS 百度地图自定义大头针。
// 其方法就是和一个代理方法即可实现 // 添加一个PointAnnotation BMKPointAnnotation *pointAnnotation2 = [[BMKPointAnnotation alloc]init]; CLLocationCoordinate2D coor2; coor2.latitude = 39.815;
2015-05-14 15:32:45
726
原创 iOS 设置UIActionSheet 按钮颜色
- (void)willPresentActionSheet:(UIActionSheet *)actionSheet { for (UIView *view in actionSheet.subviews) { if (view.tag == 1) { UIButton *button = (UIButton *) view;
2015-05-12 16:10:32
560
原创 iOS 设置UINavtionController navigationBar 为透明颜色
//设置背景颜色 if ([self.navigationController.navigationBar respondsToSelector:@selector( setBackgroundImage:forBarMetrics:)]){ NSArray *list=self.navigationController.navigationBar.subviews;
2015-05-12 16:08:31
901
原创 iOS7 禁止某一个界面手势放回
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated { if ([self respondsToSelector:@selec
2015-04-28 19:31:11
424
原创 iOS UILable 根据文字的多少改变UILable的大小
iOS 7&7 之前的 CGSize size = [str sizeWithFont:label.font constrainedToSize:CGSizeMake(label.frame.size.width, MAXFLOAT) lineBreakMode:NSLineBreakByWordWrapping]; iOS 8 CGRect labelRect = [str bo
2015-04-25 10:47:52
426
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅