自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 MAC OS苹果系统密码破解方法

首先请开机或重新启动系统,在电脑刚启动时,请按下键盘上的 command+S 组合键不动。第一步:执行硬盘检测(只读), 这一步可以省略 /sbin/fsck -y 第二步:加载文件系统(读/写)/sbin/mount -uaw 第三步:删除初始化设置时的OSX生成的隐藏文件”.applesetupdone” rm /var/db/.AppleSetupDone 最后一步:重启

2015-09-02 12:33:46 1180

原创 Mac环境下svn的使用

http://www.cnblogs.com/mjios/archive/2013/03/10/2952258.html

2015-04-08 08:25:09 495

原创 IOS锁屏状态播放音乐时显示专辑信息和图片

http://blog.cnrainbird.com/index.php/2012/06/05/ios_suo_ping_zhuang_tai_bo_fang_yin_le_shi_xian_shi_zhuan_ji_xin_xi_he_tu_pian/

2015-01-26 14:43:22 586

原创 UIBezierPath绘制三角形

-(void)drawRect:(CGRect)rect{    CGContextRef context =UIGraphicsGetCurrentContext();      CGPoint sPoints[3];//坐标点    sPoints[0] =CGPointMake(intervalLabel.frame.origin.x+2,53*cellHei

2014-12-12 14:25:21 3124

原创 addObserver:forKeyPath:options:context: Registers anObserver to receive KVO notifications

1.比如我们想要监听一个对象属性值 totalDuration  的变化@interface TimerModel : NSObject@property(assign,nonatomic)float totalDuration;  +(TimerModel *)shareTimerManager;@end@implementation TimerModel

2014-12-10 14:21:25 2231

原创 cell.textLabel不为空, cell.detailTextLabel=nil.

有的时候你会沮丧的发现        cell.textLabel不为空, cell.detailTextLabel=nil.这是因为初始化时UITableViewCellStyle设置的不对。UITableViewCellStyle成设置成下面的试试UITableViewCell  *cell = [[UITableViewCell alloc]initWithSty

2014-11-08 17:08:35 1037

原创 一句话说清楚啥是delegate

所谓委托就是类对象调用,委托对象代表任意实现该委托的类的对象。

2014-10-18 18:35:28 797

原创 为数据表对象(NSManagedObject)添加排序

eg:数据库表对象@interface Meditation : NSManagedObject@property (nonatomic, retain) NSString * order;//用来排序的属性值,用0、1、2、3...排序@end//在这个方法里操作- (void)tableView:(UITableView *)tableView

2014-10-15 16:15:51 1013

原创 IOS8新特性不会弹出本地的通知、[RemindersCell _setDeleteAnimationInProgress:]: message sent to deallocated instanc

//IOS8中删除最后一个cell的时,报一个错误 [RemindersCell _setDeleteAnimationInProgress:]: message sent to deallocated instancezadispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), di

2014-09-28 19:49:50 2998 1

原创 导航栏标题的设置以及左右按钮的颜色、选取照片弹出UIImagePickView时状态栏上移问题、View向上旋转某个角度

1.设置颜色字体  picker.navigationBar.titleTextAttributes=@{NSForegroundColorAttributeName:[UIColor whiteColor]};

2014-09-28 19:37:41 851

原创 coreData添加对象到默认数据库时(用sqliteManager添加的数据),IOS8出现问题的解决思路

如果你程序首次加载时,是使用工程中写好的sqlite文件,

2014-09-19 10:44:16 1902

原创 晃动设备、读取本地的Html文件、避免cell子视图的重用,分享到Facebook Twitter

系统所有的字体   NSLog(@"familyNames==%@   fontNamesForFamilyName=%@",[UIFont familyNames],[UIFont fontNamesForFamilyName:@"Helvetica Neue"]);

2014-09-13 09:05:00 810

原创 从数据库获取数据源的UITableView列表增加手动排序的思路

1.考虑到用户的客户端可能存在的数据,且有一定的顺序,

2014-09-02 17:17:36 799

原创 nil string parameter错误出现的原因

NSURL *soundUrl = [[NSURLalloc] initFileURLWithPath:[[NSBundlemainBundle] pathForResource:[self.chooseSoundTableViewcellForRowAtIndexPath:indexPath].textLabel.textofType:@"mp3"]];           

2014-09-02 16:49:12 2111

原创 动画的渐变效果

-(IBAction)translucentViewDown:(id)sender{    CGContextRef context=UIGraphicsGetCurrentContext();    [UIView beginAnimations:nilcontext:context];    [UIView setAnimationCurve:UIViewAnimation

2014-09-02 10:44:40 518

原创 真机测试常见的错误

1.A valid provisioning profile for this executable was not found.解决方法在

2014-08-26 16:47:51 571

原创 常见引用问题的错误信息

1.检查是否添加关系在相应的我

2014-08-25 18:48:17 628

原创 Xib处理coreData数据库的增删改查常见错误

1.拖一个emptyXib文件(个人理解相当于self),在上面拖七个UItableViewCell.这时在- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath方法中返回定制的cell变量在界面上并没有显示,这是因为并没有在self上加载Vie

2014-07-21 19:21:59 756

空空如也

空空如也

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

TA关注的人

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