- 博客(9)
- 收藏
- 关注
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
翻译 容器视图控制器的创建(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
原创 如何取消tableview选中效果
- (void)tableView:(BaseTableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {//执行点击动作//......[tableView deselectRowAtIndexPath:indexPath animated:NO];}
2014-02-16 15:03:46
793
原创 自定义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关注的人