自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(99)
  • 收藏
  • 关注

原创 React Native优秀资源

https://github.com/OrangeFlavoredColdCoffee/ReactNativeMaterialshttp://www.jianshu.com/p/53ff78168acchttps://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference

2017-11-01 15:02:01 351

原创 iOS上线流程

http://www.jianshu.com/p/b1b77d804254

2017-10-17 16:20:29 288

原创 RN版能力图谱

RN版能力图谱,绘图https://github.com/MarnoDev/react-native-open-project/blob/master/category/12_Chart.md

2017-09-27 22:56:18 472

原创 RN开源项目

开源项目地址http://www.marno.cn

2017-09-27 22:53:56 926

原创 React Native手势识别

React Native手势识别https://zhuanlan.zhihu.com/p/21335312?refer=fyales

2017-09-19 14:46:54 415

原创 React Native文件上传下载

fetch-blob的使用http://me.lizhooh.com/2017/07/23/React%20Native/React%20Native%20文件操作%20-%20fetch-blob/

2017-09-13 16:09:34 1548

原创 React Native iOS端打包

react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output ios/ios.jsbundle一行代码就可以

2017-09-09 17:18:14 388

原创 React Native TextInput键盘遮挡输入款问题

当我们使用TextInput输入框控件的时候经常容易被键盘所遮挡,在React Native上,安卓不会出现此问题,iOS小屏幕的手机出现比较明显。iOS原生开发中可以有代理进行监听进行上下滚动,但RN可以巧妙的解决这个问题,有个屌屌的控件【鼓掌】【鼓掌】import { KeyboardAwareScrollView } from 'react-nativ

2017-08-30 01:38:06 1438

原创 RN版UiTableView(带sessionHeaderView)并加载多层json数据

index.ios.jsimport React, { Component } from 'react';import { AppRegistry, StyleSheet, Text, View, Image, ListView, TouchableOpacity,} from 'react-native';// 导入外部的json数

2017-06-23 14:14:46 1276

原创 RN版本无限轮播的使用(Banner)

index.ios.jsimport React, { Component } from 'react';import { AppRegistry, StyleSheet, Text, View, ScrollView, Image} from 'react-native';var Dimensions = require('Di

2017-06-21 10:57:07 2369

原创 RN点击事件的使用

在RN中,相应事件都是通过都是通过TouchableOpacity处理的技术要点:1)响应事件方式TouchableOpacity来处理的,2)状态机getDefaultProps 是用来取值的,取用来不可以改变的值,只想当于getgetInitialState 是用来设置值的,相当于set,getimport React, { Component } from 'reac

2017-06-20 16:34:57 5560

原创 RN版本UITextFeild的使用

export default class TSUITextField extends Component { render() { return ( View style={styles.container}> TextInput style={styles.inputStyle} keyboardType={'number-pad'}

2017-06-20 10:17:31 203

原创 RN中UIImage的使用

RN版本的UIImageView加载图片的方式View style={styles.container}> {/**从项目中加载图片**/} Text>1.从项目中加载图片Text> Image source={require('./img/icon.png')} style={styles.imageStyle}/> Text>2.从App中加载图片Text> I

2017-06-19 15:32:46 864

原创 获取当前屏幕的宽高,屏幕比例

var Dimensions = require('Dimensions');var {width, height, scale} = Dimensions.get('window');width-->屏幕宽度heigh-->屏幕高度sacle-->查看当前是几倍分辨率屏幕 2X、3X

2017-06-19 13:33:47 2738

原创 iOS 二维码的生成

// 1.创建过滤器    CIFilter *filter = [CIFilter filterWithName:@"CIQRCodeGenerator"];    // 2.恢复默认    [filter setDefaults];    // 3.给过滤器添加数据    NSString *dataString = @"http://www.baidu.com";  

2017-03-22 14:26:34 250

原创 UIView转换成UIView

-(UIImage*)convertViewToImage:(UIView*)v{        UIGraphicsBeginImageContext(v.bounds.size);        [v.layer renderInContext:UIGraphicsGetCurrentContext()];        UIImage*image = UIGraphi

2017-03-22 14:19:39 209

原创 iOS UITextView 字数限制+提示剩余可输入字数

内容如下http://www.jianshu.com/p/d88752b7d35d

2017-02-20 21:15:44 1118

原创 iOS代码规范

一、命名1)统一要求要看到命名就知道其含义,并且不能和系统的起一个重名。若特殊要用加上前缀或后缀2)类的命名大驼峰式命名:每个单词首字母都要大写如:YZViewController3)私有变量小驼峰命名:除第一个单词每个单词首字母都要大写,第一个字母要小写4)property变量小驼峰式命名如:@property(nonatomic,copy)NSStrin

2017-02-20 14:00:20 264

原创 iOS中的MVVM设计模式

经过这几天的翻阅资料与代码的实现,终于对MVVM设计模式有了明确的了解,分享给大家一、什么是MVVM设计模式MVVM来源于微软二、如何正确的使用MVVM设计模式    在创建目录的时候一样,每一层放在一个单独的文件夹,M->Model,V->View,VM->View Model。在使用的时候没个View/Controller持有一个ViewModel,ViewModel负责处

2017-02-20 11:58:58 1209

原创 CocoaPods安装出现的问题解决方法

http://www.jianshu.com/p/2ef8a38416c4这里非常感谢松哥[鼓掌][鼓掌][鼓掌]!

2016-11-10 17:09:08 321

原创 OC原生视频播放

////  ViewController.m//  01-视频播放////  Created by apple on 16/9/7.//  Copyright © 2016年 apple. All rights reserved.//#import "ViewController.h"#import //对AVFoun

2016-10-11 20:02:38 1421

原创 AFN实现网络监测

////  ViewController.m//  AFN实现网络监测////  Created by 唐帅 on 14/7/3.//  Copyright © 2014年 Iteima. All rights reserved.//#import "ViewController.h"#import "AFNe

2016-07-18 19:32:16 514

原创 AFN之HTTPS

////  ViewController.m//  AFN之HTTPS////  Created by 唐帅 on 14/7/3.//  Copyright © 2014年 ItTS. All rights reserved.//#import "ViewController.h"#import "AFNetworking

2016-07-18 17:31:35 679

原创 AFN上传文件

////  ViewController.m//  AFN上传文件////  Created by 唐帅 on 16/7/3.//  Copyright © 2014年 ItTS. All rights reserved.//#import "ViewController.h"#import "AFNetworking.h

2016-07-18 15:26:44 288

原创 Sax解析XML

////  ViewController.m//  13-sax解析xml////  Created by 唐帅 on 15/6/27.//  Copyright © 2015年 TS. All rights reserved.//#import "ViewController.h"@interface V

2016-07-11 15:33:14 218

原创 plist解析

////  ViewController.m//  08-plist解析////  Created by 唐帅 on 16/7/10.//  Copyright © 2016年 tang. All rights reserved.//#import "ViewController.h"@interface

2016-07-10 17:34:49 1320

原创 JsonKit的基本使用

////  ViewController.m//  07-JSONKit解析////  Created by 徐豪 on 16/6/27.//  Copyright © 2016年 Iteima. All rights reserved.//#import "ViewController.h"#import "JSONKi

2016-07-10 17:17:21 343

原创 判断模拟器设备是否是ios7

2016-06-11 16:15:53 268

原创 让UITabBar底部的tabbar颜色不尽兴渲染

2016-06-11 15:52:18 195

原创 获取沙盒路径的分类

#import "NSString+sandBox.h"@implementation NSString (sandBox)//cache目录- (instancetype)appdentCache{    return [[NSSearchPathForDirectoriesInDomains(NSCachesDirectory,NSUse

2016-05-25 22:58:54 194

原创 NSThread 开启线程的集中方式

#import "ViewController.h"@interfaceViewController ()@end@implementation ViewController- (void)touchesBegan:(NSSetUITouch *> *)touches withEvent:(UIEvent *)

2016-05-21 21:50:35 231

原创 C语言 pthread的使用

#import "ViewController.h"#import @interfaceViewController ()@end@implementation ViewController- (void)touchesBegan:(NSSetUITouch *> *)touches wit

2016-05-21 21:49:13 745

原创 OC自旋锁的简单使用

#import "ViewController.h"@interface ViewController ()@property(atomic,copy)NSString *name;@end@implementation ViewController@synthesize name = _name;-(void)set

2016-05-21 21:47:24 559

原创 Quartz2D基本使用(二)——绘图状态

- (void)drawRect:(CGRect)rect {    // Drawing code    //oc路径对象绘制    CGContextRef ctx =UIGraphicsGetCurrentContext();        //1.创建路径    UIBezierPath * path = [UIBezierPathbezierPath];

2016-05-03 23:00:14 283

原创 Quartz2D的基本使用(一)

1)用C语言的方式简单的创建三角形(由线段构成)//rect:就是view的大小- (void)drawRect:(CGRect)rect {    // Drawing code    //1.获取图形上下文对象    CGContextRef ctx =UIGraphicsGetCurrentContext();            //2.添加路径 

2016-05-03 22:56:07 269

原创 Quartz2D做屏幕截图

// // MJViewController.m // 05-屏幕截图 // // Created by apple on 14-4-14. // Copyright (c) 2014年 itcast. All rights reserved. //import “MJViewController.h”import “UIImage+MJ.h”@interface MJViewC

2016-04-29 11:06:57 275

原创 Quartz2D图片裁剪圆的做法

import “MJViewController.h”import “UIImage+MJ.h”@interface MJViewController () @property (weak, nonatomic) IBOutlet UIImageView *iconView;@end@implementation MJViewController(void)viewDidLoad { [su

2016-04-29 10:18:27 366

原创 Quartz2d水印图片做法

(instancetype)waterImageWithBg:(NSString )bg logo:(NSString )logo { UIImage *bgImage = [UIImage imageNamed:bg];// 1.创建一个基于位图的上下文(开启一个基于位图的上下文) UIGraphicsBeginImageContextWithOptions(bgImage.size, NO

2016-04-28 21:51:01 205

原创 masonry框架的使用

1)框架写法的四步优化#import "ViewController.h"#import "Masonry.h"@interfaceViewController ()@end@implementation ViewController- (void)viewDidLoad {    [superviewDidLoad];

2016-04-17 22:18:26 341

原创 iOS VFL语言的简单实用

#import "ViewController.h"@interfaceViewController ()@end@implementation ViewController// 在界面上有一个蓝色的View,它距离父控件的上左 右各是20,// 蓝色view的高是 100// 在蓝色View的下方有一个红色的view,红色view距离蓝

2016-04-17 07:45:40 617

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除