自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

翻译 容器视图控制器的创建(WORKING WITH CUSTOM CONTAINER VIEW CONTROLLERS)

原文:http://www.thinkandbuild.it/working-with-custom-container-view-controllers/

2014-05-10 20:51:42 701

转载 CGContext小记

0  CGContextRef context = UIGraphicsGetCurrentContext(); 设置上下文1 CGContextMoveToPoint 开始画线2 CGContextAddLineToPoint 画直线4 CGContextAddEllipseInRect 画一椭圆4 CGContextSetLineCap 设置线条终点形状

2014-05-09 00:17:37 389

原创 解决自定义可左右滑动cell时和tableview的滑动手势冲突问题

让自定义的cell成为uigesturerecognizerdelegate 复写 gestureRecognizerShouldBegin 方法- (BOOL)gestureRecognizerShouldBegin:(UIPanGestureRecognizer *)gestureRecognizer{       if ([gestureRecognizer is

2014-03-13 00:04:51 1811

原创 initWithNibName 和 [[NSBundle mainBundle] loadNibNamed] 的区别

先看这篇http://blog.sina.com.cn/s/blog_7b9d64af01018f2u.html 另外补充一下 调用initWithNibName方法 不会调用 awakeFromNib 这个方法 用 viewWithTag方法获取控件的同学需要注意 如果viewWithTag写在awakeFromNib方法内 是不会调用的而loadNibNamed方法会调用awake

2014-03-07 13:07:21 852

转载 CABasicAnimation animationWithKeyPath Types

CABasicAnimation animationWithKeyPath TypesWhen using the ‘CABasicAnimation’ from the QuartzCore Framework in Objective-C, you have to specify an animationWithKeyPath.  This is a long string and i

2014-03-02 00:17:10 437

原创 如何封装结构体

结构体不属于对象,应使用NSValue进行封装

2014-02-16 20:18:34 1003

原创 如何取消tableview选中效果

- (void)tableView:(BaseTableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {//执行点击动作//......[tableView deselectRowAtIndexPath:indexPath animated:NO];}

2014-02-16 15:03:46 793

原创 @class 和 #import 的区别

子类中没有用到的父类的属性 用@class 否则用#import

2014-02-16 14:15:39 310

原创 自定义uibutton 如何去除原有title

- (void)setTitle:(NSString *)title { if (title.length > 0 && _title != title) { _title = title; [self setTitle:nil forState:UIControlStateNormal]; if (!_rectTitleLabel) { _rectTitleLabel = [[UILabel a

2014-02-13 15:49:10 460

空空如也

空空如也

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

TA关注的人

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