- 博客(13)
- 收藏
- 关注
原创 tableViewCell点击效果
都知道,在tableviewCell点击时,可以用它的属性设置其点击效果,但是当cell上添加了一个有背景色的控件(如UILabel等)时,点击时其背景色会消失,变成统一的系统设置的颜色,这种情况下,只要在自定义的cell中重写两个方法即可,代码如下:- (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super
2014-11-26 14:41:26
625
原创 平常整理
UIDevice *device = [UIDevice currentDevice]; device.proximityMonitoringEnabled = YES;
2014-11-17 10:51:29
492
原创 移除所有子视图,无需循环只需要一句代码
[view.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
2014-10-27 11:15:01
662
转载 iOS :自定义文字
转自: iOS tips: Custom Fonts> Post by Steve VlaminckMy good friend google told me that using a custom font in iOS is “easy”. And for the most part it is, but I got tripped up in a few places. I ha
2014-10-14 12:10:54
654
转载 iOS APNS远程推送(史上最全步骤)
/*****************************************1************************************************//*****************************************2************************************************/
2014-07-10 20:00:50
999
转载 一些常用宏定义(转自HMT)
// 安全释放 #define RELEASE_SAFELY(__Pointer) do{[__Pointer release],__Pointer = nil;} while(0) // 屏幕的物理高度 #define ScreenHeight [UIScreen mainScreen].bounds.size.height // 屏幕的物理宽度
2014-07-10 19:46:41
508
转载 iOS 真机调试(史上最详细步骤解析,hmt精心打造)
真机调试/*************************************************************1********************************************************************//***********************************************
2014-07-10 19:32:23
538
转载 App上线流程全攻略(史上最详细步骤)
[置顶] App上线流程全攻略(史上最详细步骤)分类: iOS 新闻 更新 标准 建议 工具app上线流程@转载请保留:iOS界一迷糊小书童--->专注于iOS开发!!谢谢合作/*****************************************1************************************************/
2014-07-10 19:11:29
923
原创 NSClassFromString简介
id myObj = [[NSClassFromString(@"MySepecialClass") alloc]init];
2014-07-10 17:16:37
711
原创 邮件、短信、相机、图库的使用
---------------------------------------------------------------------------------------------------------------1----------------------------------------------------------------------------------------
2014-07-10 16:54:46
1367
原创 IOS练习题
1....简述OC中内存管理机制,与retain配对使用的方法是dealloc还是release,为什么?需要与alloc配对使用的方法是dealloc还是release,为什么?readwrite,readonly,assign,retain,copy,nonatomic,atomic,strong,weak属性的作用?OC中使用了一种叫做引用计数的机制来管理对象,如果对一个对象使用了all
2014-06-24 22:43:58
1528
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人