自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

有酒有故事

淇水汤汤 浚水沧沧 回首北顾 思我故乡

  • 博客(19)
  • 收藏
  • 关注

转载 友盟第三方登录分享集成参考

http://www.jianshu.com/p/7025087dc0ec

2016-10-26 13:37:57 330

原创 react native mac 下真机调试 Could not connect to development server.

可能原因 1.localhost 没改 2.http->https App Transport Security Settings 3.程目录npm start !–mac 上是这样的: brew uninstall –force watchman brew install –HEAD watchman 重新安装watchman就可以了–!生成 main.jsBundle

2016-10-24 09:39:30 1018

原创 React native 入门二 魅力展示

打下面代码copy至index.os.js 和index.android.jsimport React, { Component,} from 'react';import { AppRegistry, Image, ListView, StyleSheet, Text, View,} from 'react-native';var RE

2016-10-10 18:07:51 407

原创 React native 入门一

环境mac xcode 7+ 1、安装Homebrew安装Homebrew是为安装Node.js做前提准备。 /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”注:可以通过下面命令查看Homebrew是否安装成功brew -v Homebrew/hom

2016-10-10 15:04:34 628

原创 IPv4和IPv6支持

根据当前网络环境(IPv4/IPv6)返回,要访问的服务器的相应格式的ip地址 NSArray *serverDNSs = [IPAdapter getDNSsWithDormain:Host]; //Host为域名 if (!serverDNSs || serverDNSs.count <= 0) { NSLog(@"Could not get host

2016-10-09 17:38:41 949

原创 Cocoapods 安装使用方法

1.mac系统是有ruby环境的,不多说,想要查看当前源的话:$ gem sources -l (这是L)2.只要你以前没装过,你的源肯定是https://rubygems.org/,这一步需要删除这个源:$ gem sources –remove https://rubygems.org/3.删除后添加翻墙的ruby源,这里用淘宝的,以前的是http,现在是https:$ gem sources

2016-10-09 16:05:12 328

原创 Reason: image not found 错误解决方法

在Build Phases里把XXXXX.framework后边选项改成Optional就可以了

2016-10-09 15:33:40 6053

原创 ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together

ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together clang: error: linker command failed with exit code 1 (use -v to see invocation) 解决 build setting ena

2016-10-09 15:31:31 1527

原创 工程如何添加Alamofire

打开你的工程,把Alamofire-master文件放到工程文件夹中 点工程.xcodeproj右键add –>把Alamofire.xcodeproj这个工程添加到你的工程中注意选择copyifneed build Phases ->Target Dependencies ->Link Binary With Libraries 添加Alamofire.framework 即可

2016-10-09 15:27:12 1532

原创 IOS类似于微信和qq的泡泡语音

// 未简化 不可复用 仅供参考//泡泡语音 - (UIView *)yuyinView:(NSInteger)logntime from:(BOOL)fromSelf withIndexRow:(NSInteger)indexRow withPosition:(int)position{//根据语音长度int yuyinwidth = 66+fromSelf;UIButton *button

2016-10-08 16:32:20 733

原创 高仿微信和qq气泡聊天(整合精简版)

//定制单元cell#import "TableViewCell.h"@implementation TableViewCell-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ self=[super initWithStyle:sty

2016-10-08 16:30:24 1033

原创 IOS 截屏

UIGraphicsBeginImageContext(self.view.bounds.size); // 创建一个基于位图的图形上下文并指定大小为 [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];//renderInContext呈现接受者及其子范围到指定的上下文 UIImage *v

2016-10-08 15:55:44 361

原创 iOS 如何加载gif

原理 利用webview CGRect frame = [UIScreen mainScreen].bounds; //frame.size = [UIImage imageNamed:@"yourname.gif"].size; NSData * gif = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathFor

2016-10-08 15:49:50 424

原创 IOS跳转去appStore评分

(void)gotoAppStore{NSString *str = [NSString stringWithFormat:@”itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@”, kAppId]; if ([[UIApplicat

2016-10-08 15:45:24 597

原创 IOS crash信息收集(swift)

原理: crash时保存到userDefault 程序启动时上报 func setUpErrorTest() { //错误处理 let err:String? = NSUserDefaults.standardUserDefaults().objectForKey("error.log") as? String print(err)

2016-10-08 15:41:45 1136

原创 IOS检查版本更新

iOS的版本号, 一个叫做Version, 一个叫做Build. 获得Version , [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];获得build号:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleV

2016-10-08 15:36:05 376

原创 ios将两个字典合并

[param addEntriesFromDictionary:self.selectedDic]; 前者为目标字典 即将后者添加到param中.

2016-10-08 15:29:06 12647

原创 swift 闭包

1.typealias callbackfunc=(selectIndex:Int)->Void 可以在任何地方定义2.var userAction:callbackfunc? 3.userAction!(selectIndex:1) 谁传值谁调用4 func userAction(selectIndex:index)->void{实现代码} 谁改变谁实现

2016-10-08 15:27:00 469

原创 Cannot create __weak reference in file using manual refrence counting.

点击工程启动文件 - TARGETS -Build Settings - 在下方搜索框搜索weak - 在Apple LLVM 7.1 - Language - Objective C选项下边 - 把Weak Reference in Manual Retain Release选项改成YES即可

2016-10-04 14:09:40 336

空空如也

空空如也

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

TA关注的人

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