随笔分类 -  [iphone 开发学习]

摘要:[转自]http://mp.weixin.qq.com/s?__biz=MzA3NzM0NzkxMQ==&mid=401887460&idx=1&sn=c8e0a6c2e307a2f2b3ce4de0ed108f6a&scene=23&srcid=1202lCShwFvMdphiOWggNirc#r... 阅读全文
posted @ 2015-12-02 10:18 Clin 阅读(544) 评论(0) 推荐(0)
摘要:#ifndef MacroDefinition_h #define MacroDefinition_h //-------------------获取设备大小------------------------- //NavBar高度 #define NavigationBar_HEIGHT... 阅读全文
posted @ 2015-11-12 17:15 Clin 阅读(1892) 评论(0) 推荐(1)
摘要:https://github.com/syedhali/EZAudio基于核心音频,有助于进行实时,低延迟音频处理和可视化的iOS和OSX音频可视化框架。https://github.com/bang590/JSPatchJSPatch使用Objective-C运行时桥接Objective-C和Ja... 阅读全文
posted @ 2015-11-02 10:49 Clin 阅读(1026) 评论(0) 推荐(0)
摘要:转自:http://www.cocoachina.com/programmer/20151019/13746.html1. Object-c的类可以多重继承么?可以实现多个接口么?Category是什么?重写一个类的方式用继承好还是分类好?为什么?答: Object-c的类不可以多重继承;可以实现多... 阅读全文
posted @ 2015-10-29 14:23 Clin 阅读(778) 评论(0) 推荐(1)
摘要:TTTAttributedLabel 库地址 https://github.com/TTTAttributedLabel/TTTAttributedLabel#import "ViewController.h"@interface ViewController () @end@implementa... 阅读全文
posted @ 2015-10-16 19:26 Clin 阅读(925) 评论(0) 推荐(0)
摘要:NSString *text = @"Lorem ipsum dolor sit amet"; [self.testAttributedLabel setText:text afterInheritingLabelAttributesAndConfiguringWithBlock:^ ... 阅读全文
posted @ 2015-10-16 17:57 Clin 阅读(882) 评论(0) 推荐(0)
摘要:https://github.com/XCGit/awesome-objc-frameworkshttps://github.com/KevinHM/ios-good-practices-the-lastest-versionhttps://github.com/singro 阅读全文
posted @ 2015-08-25 11:28 Clin 阅读(197) 评论(0) 推荐(0)
摘要:iOS面试知识点(1)Java垃圾回收机制和ARC回收机制的区别? ARC自动引用计数(automatic reference counting),当你在编译程序时提供自动管理内存的功能,它会为程序自动加入内存的控制代码,控制独享声明周期。这样一来,就可以简化内存管理步骤。不过支持的版本是在i... 阅读全文
posted @ 2015-08-06 19:24 Clin 阅读(332) 评论(0) 推荐(0)
摘要:1.统计ios开发代码,包括头文件的,终端命令进入项目目录下,命令如下find . -name "*.m" -or -name "*.h" -or -name "*.xib" -or -name "*.c" |xargs wc -l 列出每个文件的行数find . -name "*.m" -or -... 阅读全文
posted @ 2014-06-28 12:33 Clin 阅读(175) 评论(0) 推荐(0)
摘要:1.chmod u+x test.sh2.hash bang 阅读全文
posted @ 2014-03-17 22:32 Clin 阅读(122) 评论(0) 推荐(0)
摘要:sudo gem update --systemsudo gem install cocoapodspod setuppod --version 阅读全文
posted @ 2014-03-17 22:14 Clin 阅读(6285) 评论(0) 推荐(1)
摘要:#pragma mark -#pragma mark - 缩放处理+ (UIImage *)scaleImage:(UIImage *)image withScale:(float)scale{ UIGraphicsBeginImageContext(CGSizeMake(image.size.width * scale, image.size.height * scale)); [image drawInRect:CGRectMake(0, 0, image.size.width * scale, image.size.height * scale)]; UIIma... 阅读全文
posted @ 2014-03-06 08:49 Clin 阅读(7244) 评论(1) 推荐(0)
摘要:1. Terms and conditions(法律与条款)1.1As a developer of applications for the App Store you are bound by the terms of theProgram License Agreement(PLA), Human Interface Guidelines (HIG), and any other licenses or contracts between you and Apple. The following rules and examples are intended to assist you 阅读全文
posted @ 2014-02-09 20:51 Clin 阅读(498) 评论(0) 推荐(0)
摘要://// UIView+Borders.h//// Created by Aaron Ng on 12/28/13.// Copyright (c) 2013 Delve. All rights reserved.//#import @interface UIView (Borders)/* Create your borders and assign them to a property on a view when you can via the create methods when possible. Otherwise you might end up with multipl... 阅读全文
posted @ 2014-01-12 09:48 Clin 阅读(1082) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-11-21 13:51 Clin 阅读(373) 评论(0) 推荐(0)
摘要:如果要限制UITextField输入长度最长不超过kMaxLength,那么需要实现做以下操作:1、实现UITextFieldDelegate协议;2、实现textField:shouldChangeCharactersInRange:replacementString:方法;- (BOOL)textField:(UITextField*)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString*)string{NSIntegerstrLength = textField.text.le 阅读全文
posted @ 2013-11-07 20:10 Clin 阅读(6214) 评论(0) 推荐(1)
摘要://修改搜索框背景 self.searchCarKeyWord.backgroundColor=[UIColorclearColor]; //去掉搜索框背景 //1. [[self.searchCarKeyWord.subviewsobjectAtIndex:0]removeFromSuperview]; //2. //CGRect rcSearchBg = CGRectMake(0, 0, self.searchBar.frame.size.width, self.searchBar.frame.size.height); UITextField *searchField; UIButton 阅读全文
posted @ 2013-11-07 20:06 Clin 阅读(277) 评论(0) 推荐(0)
摘要:Permission denied, please try again.Permission denied, please try again.Permission denied (publickey,password).Failed to create directory /var/root/iOSOpenDevBuilds/HelloDev on device 192.168.1.10-----------1.改目录权限chmod 600 ~/.ssh/authorized_keyschmod 700 ~/.sshchmod 700 ~2.修改iphone etc/ssh/sshd_con 阅读全文
posted @ 2013-11-06 18:39 Clin 阅读(386) 评论(0) 推荐(0)
摘要:使用sips批量缩放图片大小>>sips -s format jpeg -Z 250 someImage.PNG --out myImage.JPEG把someImage.PNG转换为最长边为250的myImage.JPEG。//什么叫最长边,比如我有张图它的比例是750*460,那么如果我用大Z的话,转出来的结果应该是250 * 153 (460 * (250/750)),这就是最大边。 但如果我想硬改为250 * 250 呢?命令如下:>>sips -s format jpeg -z 250 250 someImage.PNG --out myImage.JPEGs 阅读全文
posted @ 2013-11-02 10:51 Clin 阅读(196) 评论(0) 推荐(0)
摘要:1.AppIcon:可以瞬间把图片转换为应用所需要的Icon(Icon-72.png,Icon-72@2x.png,......iTunesArtwork@2x)2.Resizer:方便把-hd,@2x之类的图片压缩,特别适合配合cocos2d使用3.Dash查看各种语言和API的参考文档,C,C++,OBJ-C,cocos2d,cocos2d-x,cocos3d,python,ruby,javascript,qt...你想得到的基本上都有4.SourceTree(Git/Hg)配合git使用的图形界面软件,远离命令行5. Sound Forge Pro简单的处理音效,很方便6.Particl 阅读全文
posted @ 2013-11-01 19:07 Clin 阅读(374) 评论(0) 推荐(0)