自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 富文本 WPAttributedMarkup

https://github.com/nigelgrange/WPAttributedMarkupWPAttributedMarkup is a simple utility category that can be used to easily create an attributed string from text with markup tags and a style dicti

2015-07-02 10:40:52 3188

转载 IOS动画中的枚举UIViewAnimationOptions

首先这个枚举属于UIViewAnimation。我们经常使用的函数是[UIView animateWithDuration: animations:^{} completion:^(BOOL finished) {}];和[UIView animateWithDuration: animations:^{}];如果动画稍微复杂点,例如需要组合等等就可能用到这个函数:[UIView animateW

2015-06-26 17:21:32 779

转载 ios多工程依赖

做程序员稍微久点就会发现每次做新项目的时候拖自己的工具代码很费劲,写个简单的教程来管理工具类,并在新工程里引用。//导入准备工作1.建立一个Framework & Library->Cocoa Touch Static Library 取名A,并在A里新建一个类用来测试2.建立一个demo工程B3.把工程A整个文件夹复制到B工程文件夹里,位置随便选(只要你会添加头文

2015-05-16 12:42:37 2357 1

原创 No known instance method for selector 'respondsToSelector:'

声明的协议protocol没有从NSObject继承如://MyClass.h:@class MyClass;@Protocol MyClassDelegate- (void)myClass:(MyClass *)sender willDoSomething:(BOOL)animated;@end@interface MyClass : UIViewContro

2015-05-13 14:49:57 5431

转载 componentsJoinedByString 和 componentsSeparatedByString 的方法的区别

将string字符串转换为array数组 NSArray  *array = [Str componentsSeparatedByString:@","];==反向方法将array数组转换为string字符串 NSString *tempString = [mutableArray componentsJoinedByString:@","];-

2015-05-06 10:31:14 8813

转载 Xcode无法识别真机

如果xcode无法识别真机, Xcode->window->Organizer->Devices查看测试机连接状态是否为绿色,如果无法连接,我记得有个use for development选项,点击就可以了; 当然所有的前提是你的设备的UDID已经添加到测试机里,或是为越狱机、Xcode必须已安装你的设备对应的编译环

2015-04-27 10:31:14 792

转载 CAlayer层

http://www.cnblogs.com/wendingding/p/3800736.htmliOS开发UI篇—CAlayer层的属性一、position和anchorPoint1.简单介绍CALayer有2个非常重要的属性:position和anchorPoint@property CGPoint position;用来设置CALa

2015-02-27 16:23:53 308

转载 Objective-C Runtime

http://southpeak.github.io/blog/2014/10/25/objective-c-runtime-yun-xing-shi-zhi-lei-yu-dui-xiang/Objective-C Runtime 运行时之一:类与对象OCT 25TH, 2014 | COMMENTSObjective-C语言是一门动态语言,它将很多静

2015-02-27 16:16:31 417

转载 IOS的AutoresizingMask和AutoLayout

http://www.juwends.com/tech/apple/ios-autoresizingmask-autolayout.html初涉IOS开发,还没完全踏入,借了本名叫《IOS编程》的庞然大书来翻,虽然书中是用Objective-c的,虽然Swift已然出道,不过个人认为这个对我这种还没入行的人来说,影响不大,反正感觉Swift做IOS开发,很多api都是直接cop

2015-02-27 16:14:32 1732

原创 userInteractionEnabled属性理解

A Boolean value that determines whether user events are ignored and removed from the event queue.一个布尔值,它决定了是否用户触发的事件被该视图对象忽略和把该视图对象从事件响应队列中移除。UIView  userInteractionEnabled 默认值是YES一些

2015-02-27 16:11:56 852

原创 -[__NSCFString absoluteURL]:

请求图片时容易出现此错误UIButton *avatarButton = [UIButton buttonWithType:UIButtonTypeCustom];[avatarButton setImageWithURL:[NSString stringWithFormat:@"http:xxx.png"]];//错误[avatarButton setImageWithURL:[NS

2015-02-27 15:48:42 1943

原创 iOS报错libc++abi.dylib handler threw exception

在相应位置加断点不打印相应日志,可以用下面这几行代码打印异常日志@try{     //相关异常代码    }      @catch(NSException *exception) {          NSLog(@"exception:%@", exception);      }      @finally {            

2015-02-27 15:17:48 812

原创 DerivedData/xxx-fxhqtzymbwegttddoznsqpakmlvp/Build/Products/Debug-iphonesimulator/xxx.app/xxx

运行程序报错ld: file not found: ~/Library/Developer/Xcode/DerivedData/xxx-fxhqtzymbwegttddoznsqpakmlvp/Build/Products/Debug-iphonesimulator/xxx.app/xxxclang: error: linker command failed with exit cod

2015-01-05 10:22:15 7810 1

原创 Xcode 左上角IOS Simulator不可选其他系统模拟器

添加模拟器就可以了。

2014-12-19 17:06:12 6846

转载 iOS中arc的设置与使用

(arc是iOS 5推出的新功能,那些概念性的话就不多说了).发个小帖,仅供新手看~旧工程配置arc方案:1,直接在targets->build phases中修改compiler Flags,是否支持arc。添加:-fobjc-arc,就可以让旧项目支持arc。如果想让原来支持arc的不使用arc则添加-fno-objc-arc2,因为在build p

2014-12-18 17:31:45 345

原创 IOS项目Icon files和LaunchImage 图片配置

xxx(项目名)-Info.plist 文件配置Icon files APP应用图标:高清晰度的iPhone和iPod touch(单位:像素)启动影像 :640 x 960APP图标:114 x 114 App Store商店:1024 x 1024Spotlight搜索小图标: 58 x 58文档图标: 44 x 58Web Clip图标 :114 x 11

2014-12-18 13:59:23 2176

原创 动画显示自定义提示框

如果有导航栏时,把自定义的UIView 放到window上需要+ (AppDelegate *)shareAppDelegate {    return (AppDelegate *)[UIApplicationsharedApplication].delegate;}[helpView setTag:6534];[[AppDelegatesha

2014-12-11 16:57:46 949

原创 UIButton 上同时显示图片和文字

UIButton *searchButton = [UIButtonbuttonWithType:UIButtonTypeCustom];    UIImage *searchImage = [UIImageimageNamed:@"searchBarBg.png"];    searchButton.frame =CGRectMake(10, 10, searchImage.

2014-12-02 15:53:17 485

原创 Thread1:EXC_BAD_ACCESS错误

是因为试图访问一个不存在的对象的时候会报此错误,一般情况下是过度release,对象被提早释放了。

2014-12-02 15:29:49 7978

原创 While reading /Users/xxx img.png pngcrush caught libpng error: Not a PNG file..

While reading /Users/xxx img.png pngcrush caught libpng error: Not a PNG file..

2014-11-25 17:59:45 4510 1

空空如也

空空如也

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

TA关注的人

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