摘要: 1,你所不知道的Mac截图的强大2,抓包工具WireShark开发必备,需要装X11插件3,Mac远程控制Windows桌面-CoRD。或者TeamViewer4,Mac下解压缩BetterZip,个人认为好用方便!5,Mac文件比较工具p4Merge 阅读全文
posted @ 2013-09-11 10:41 暖流 阅读(907) 评论(0) 推荐(0) 编辑
摘要: CalenderCollectionViewFlowLayout *flowLayout = [[CalenderCollectionViewFlowLayout alloc] init]; flowLayout.minimumLineSpacing = 0; flowLayout.minimumInteritemSpacing = 0; flowLayout.item... 阅读全文
posted @ 2017-11-09 10:46 暖流 阅读(1171) 评论(0) 推荐(0) 编辑
摘要: 1、使用CommonJS标准,引入React包基本通过require进行 2、要导出一个类给别的模块用,通常用export default来实现相同的功能 引用的时候也类似: 3、定义组件 - 通过定义一个继承自React.Component的class来定义一个组件类 给组件定义方法 从上面的例子 阅读全文
posted @ 2017-01-18 11:14 暖流 阅读(168) 评论(0) 推荐(0) 编辑
摘要: // // BaseVC.m // SmsSessions // // Created by Ken on 16/6/24. // Copyright © 2016年 ken. All rights reserved. // #import "BaseVC.h" @interface BaseVC () { UIView *curView; UIViewControll... 阅读全文
posted @ 2016-06-24 16:39 暖流 阅读(178) 评论(0) 推荐(0) 编辑
摘要: - (void)webDataManager:(SDWebDataManager *)dataManager didFinishWithData:(NSData *)aData isCache:(BOOL)isCache { UIImage *img=[UIImage imageWithData:aData]; if(aData.length == 79107 || aDat... 阅读全文
posted @ 2016-05-30 17:32 暖流 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 如果执行没有反应,应该是墙。 2、使用淘宝镜像去安装 3、完成后查看 如果显示 出现一下就ok了 搜索库 出现Setting up CocoaPods master repo,说明Cocoapods在将它的信息下载到 ~/.cocoapods里 os10.11会出问题 阅读全文
posted @ 2016-01-14 11:12 暖流 阅读(219) 评论(0) 推荐(0) 编辑
摘要: - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ self = [super initWithStyle:style reuseIdentifier:reuseI... 阅读全文
posted @ 2016-01-05 19:17 暖流 阅读(285) 评论(0) 推荐(0) 编辑
摘要: NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"系统详细的使用手册,请点击查看【移动监管用户手册】"]; [str addAttribute:NSForegroun... 阅读全文
posted @ 2015-12-10 14:21 暖流 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1,首先mac安装 Homebrew,当然也可以直接在终端中执行 http://brew.sh/可以在这里找到下面该连接 安装成功之后,然后用brew命令来安装Node.js 然后安装 watchman(Facebook推出的文件改动监听器): brew install watchman React 阅读全文
posted @ 2015-10-12 18:22 暖流 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 升级到iOS9之后,使用XCode7编译时,发现JSONKit不幸的又出现问题了,那么如何解决呢?解决方案1:等待JSONKit更新,同时等待所有使用JSONKit的第三方SDK更新(好吧这方法是逗你玩的)解决方案2:使用系统的!!但是使用系统JSON解析很麻烦,项目改动又比较多,怎么办?这时候可以... 阅读全文
posted @ 2015-10-10 17:23 暖流 阅读(179) 评论(0) 推荐(0) 编辑
摘要: - (UIColor *) colorOfPoint:(CGPoint)point{ unsigned char pixel[4] = {0}; CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); CGContex... 阅读全文
posted @ 2015-08-07 13:42 暖流 阅读(225) 评论(0) 推荐(0) 编辑
摘要: //按钮的内在内容大小随着按钮名称变化而变化 UIButton *btn1 = [UIButton buttonWithType:UIButtonTypeCustom]; [btn1 setTitle:@"Hello World" forState:UIControlStateN... 阅读全文
posted @ 2015-04-30 12:27 暖流 阅读(918) 评论(0) 推荐(0) 编辑
摘要: m_mutArrGrade = [[NSMutableArray alloc]init]; m_mutArrGrade = [NSMutableArray arrayWithArray:m_arrStore]; NSComparator finderSort = ^(id string1... 阅读全文
posted @ 2015-04-03 09:54 暖流 阅读(211) 评论(0) 推荐(0) 编辑
摘要: - (UIButton*)buildButton:(CGRect)frame normalImgStr:(NSString*)normalImgStr highlightImgStr:(NSString*)highlightImgStr sel... 阅读全文
posted @ 2015-03-20 15:36 暖流 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 在JS与OC进行交互的时候特别要注意内存问题。当JS与OC存在循环引用的时候,那么势必在成内存的叠加无法释放。所以合理的使用JS中var girl = new Girl();girl.boyFriend = boy;boy.girlFriend = girl; OC中JSManagedValue包... 阅读全文
posted @ 2015-01-30 17:41 暖流 阅读(381) 评论(0) 推荐(0) 编辑
摘要: #import 之前一章已经看过JS和Block的互动NSInteger nNumber = 9; NSString *strOut = @"abc"; context[@"sum"] = ^(int a,int b) { NSLog(@"strOut = %@",s... 阅读全文
posted @ 2015-01-28 17:36 暖流 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 首先我们先认识JSBindingJSBinding本身并非Hybrid,本质上也并无任何联系。JSBinding实际是JS 与 Native 间的一座桥梁,通过JS引擎进行交互。Hybrid实际是Web 与 Native间的一座桥梁,还是通过Web中,实际应用中仍然是WebView。原生语言特点 :... 阅读全文
posted @ 2015-01-28 16:13 暖流 阅读(1319) 评论(0) 推荐(0) 编辑
摘要: 点击一个按钮,然后显示loading,同时在后台下载一张图片,最后将下载的图片放到UIImageView中显示为例。 1 //显示loading 2 self.indicator.hidden = NO; 3 [self.indicator startAnimating]; ... 阅读全文
posted @ 2014-11-18 10:10 暖流 阅读(258) 评论(0) 推荐(0) 编辑
摘要: //识别\n\t多行 1 -(void) theViewInTheLableToRefresh 2 { 3 UILabel *lab = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, 310, 1)]; 4 lab.text = m_... 阅读全文
posted @ 2014-11-03 14:44 暖流 阅读(478) 评论(0) 推荐(0) 编辑
摘要: HTML5是用于取代1999年所制定的 HTML 4.01 和 XHTML 1.0的标准通用标记语言。是新一代的支持移动互联网网页开发技术。HTML5拥有良好的页面表现性能和跨平台兼容性。 HTML5它的开发是通过谷歌、苹果,诺基亚、中国移动等几百家公司一起酝酿的技术,这个技术最大的好处在于它是一... 阅读全文
posted @ 2014-09-03 13:25 暖流 阅读(10650) 评论(0) 推荐(0) 编辑
摘要: 定义函数(参数name,day类型string,返回值->String)func greet(name: String, day: String) -> String { return "Hello \(name), today is \(day)."}greet("Bob", "Tuesda... 阅读全文
posted @ 2014-06-04 16:54 暖流 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 一、简单类型println("say goodbey") //无需添加”;“ ,也不用java,c等添加main{}函数let strName = 1024; //定义常亮,一次定义多次使用,#default kXXX 45类似var strPhoneNumber = "hehe"; ... 阅读全文
posted @ 2014-06-04 16:52 暖流 阅读(237) 评论(0) 推荐(0) 编辑
摘要: [UIApplicationsharedApplication].statusBarHidden = YES; if ([UIApplicationsharedApplication].statusBarHidden == NO) { //iOS7,需要plist里设置 View cont... 阅读全文
posted @ 2014-05-22 16:20 暖流 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1.安装unity4.X,一路按提示下一步2.安装完,打开Finder->应用程序->Unity,找到Unity.app,右击显示包含内容,点击进入3.看到Contents文件,点击进入,找到MacOS,继续点击进入,看到两个文件夹4.解压出下载的破解文件用里面的Unity文件替换到上面的unity... 阅读全文
posted @ 2014-05-05 15:39 暖流 阅读(776) 评论(0) 推荐(0) 编辑
摘要: #import "GLProgram.h"// Base classes#import "GPUImageOpenGLESContext.h"#import "GPUImageOutput.h"#import "GPUImageView.h"#import "GPUImageVideoCamera.... 阅读全文
posted @ 2014-05-05 15:37 暖流 阅读(1497) 评论(0) 推荐(0) 编辑
摘要: + (StoreInfo *)parseEntityWithDictionary:(NSDictionary *)arributeDict{ StoreInfo * instance = [[StoreInfo alloc] init]; for(int i = 0 ; i < [arributeDict count] ; i++) { NSString * attributeStr = [[arributeDict allKeys] objectAtIndex:i]; NSString * tempMethodStr=nil; NS... 阅读全文
posted @ 2014-03-31 18:12 暖流 阅读(617) 评论(0) 推荐(0) 编辑
摘要: 首先CGImageRef与UIImage相互转换//CGImageRef转换成UIImage CGImageRef iOffscreen = CGBitmapContextCreateImage(context);UIImage* image = [UIImage imageWithCGImage: iOffscreen]; //UIImage转换成CGImageRef UIImage *loadImage=[UIImage imageNamed:@"comicsplash.png"];CGImageRef cgimage=loadImage.CGImage;之所以需要转换 阅读全文
posted @ 2014-02-12 11:24 暖流 阅读(703) 评论(0) 推荐(0) 编辑
摘要: #import #import "ShowHelloViewController.h"@interface AppDelegate : UIResponder { NSString *m_strTest;}@property (strong, nonatomic) UIWindow *wind... 阅读全文
posted @ 2014-02-10 17:16 暖流 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 判断整形- (BOOL)isPureInt:(NSString *)string{ NSScanner* scan = [NSScanner scannerWithString:string]; int val; return [scan scanInt:&val] && [scan isAtEnd];} 判断浮点型- (BOOL)isPureFloat:(NSString *)string{ NSScanner* scan = [NSScanner scannerWithString:string]; float val; return [scan scan... 阅读全文
posted @ 2014-01-22 14:30 暖流 阅读(2013) 评论(0) 推荐(0) 编辑
摘要: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationWillResignActive:)name:UIApplicationWillResignActiveNotification object:nil]; //监听是否触发home键挂起程序. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationDidBecomeActive:)name:UIApplic... 阅读全文
posted @ 2014-01-21 14:13 暖流 阅读(528) 评论(0) 推荐(0) 编辑
摘要: [[UIApplication sharedApplication] setIdleTimerDisabled:YES]; 保持常量 阅读全文
posted @ 2014-01-16 10:50 暖流 阅读(381) 评论(0) 推荐(0) 编辑