
IOS菜鸟笔记
小普zzz
这个作者很懒,什么都没留下…
展开
-
自定义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 · 494 阅读 · 0 评论 -
@class 和 #import 的区别
子类中没有用到的父类的属性 用@class 否则用#import原创 2014-02-16 14:15:39 · 337 阅读 · 0 评论 -
如何取消tableview选中效果
- (void)tableView:(BaseTableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {//执行点击动作//......[tableView deselectRowAtIndexPath:indexPath animated:NO];}原创 2014-02-16 15:03:46 · 827 阅读 · 0 评论 -
如何封装结构体
结构体不属于对象,应使用NSValue进行封装原创 2014-02-16 20:18:34 · 1044 阅读 · 0 评论 -
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 · 461 阅读 · 0 评论 -
解决自定义可左右滑动cell时和tableview的滑动手势冲突问题
让自定义的cell成为uigesturerecognizerdelegate 复写 gestureRecognizerShouldBegin 方法- (BOOL)gestureRecognizerShouldBegin:(UIPanGestureRecognizer *)gestureRecognizer{ if ([gestureRecognizer is原创 2014-03-13 00:04:51 · 1859 阅读 · 0 评论 -
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 · 897 阅读 · 0 评论 -
CGContext小记
0 CGContextRef context = UIGraphicsGetCurrentContext(); 设置上下文1 CGContextMoveToPoint 开始画线2 CGContextAddLineToPoint 画直线4 CGContextAddEllipseInRect 画一椭圆4 CGContextSetLineCap 设置线条终点形状转载 2014-05-09 00:17:37 · 438 阅读 · 0 评论 -
容器视图控制器的创建(WORKING WITH CUSTOM CONTAINER VIEW CONTROLLERS)
原文:http://www.thinkandbuild.it/working-with-custom-container-view-controllers/翻译 2014-05-10 20:51:42 · 749 阅读 · 0 评论