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

翻译 容器视图控制器的创建(WORKING WITH CUSTOM CONTAINER VIEW CONTROLLERS)
原文:http://www.thinkandbuild.it/working-with-custom-container-view-controllers/
2014-05-10 20:51:42
741
转载 CGContext小记
0 CGContextRef context = UIGraphicsGetCurrentContext(); 设置上下文 1 CGContextMoveToPoint 开始画线 2 CGContextAddLineToPoint 画直线 4 CGContextAddEllipseInRect 画一椭圆 4 CGContextSetLineCap 设置线条终点形状
2014-05-09 00:17:37
426
原创 解决自定义可左右滑动cell时和tableview的滑动手势冲突问题
让自定义的cell成为uigesturerecognizerdelegate 复写 gestureRecognizerShouldBegin 方法 - (BOOL)gestureRecognizerShouldBegin:(UIPanGestureRecognizer *)gestureRecognizer{ if ([gestureRecognizer is
2014-03-13 00:04:51
1852
原创 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
888
转载 CABasicAnimation animationWithKeyPath Types
CABasicAnimation animationWithKeyPath Types When 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
457
原创 如何取消tableview选中效果
- (void)tableView:(BaseTableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { //执行点击动作 //...... [tableView deselectRowAtIndexPath:indexPath animated:NO]; }
2014-02-16 15:03:46
819
原创 自定义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
489
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人