- 博客(18)
- 收藏
- 关注
原创 MAC OS苹果系统密码破解方法
首先请开机或重新启动系统,在电脑刚启动时,请按下键盘上的 command+S 组合键不动。第一步:执行硬盘检测(只读), 这一步可以省略 /sbin/fsck -y 第二步:加载文件系统(读/写)/sbin/mount -uaw 第三步:删除初始化设置时的OSX生成的隐藏文件”.applesetupdone” rm /var/db/.AppleSetupDone 最后一步:重启
2015-09-02 12:33:46
1255
原创 Mac环境下svn的使用
http://www.cnblogs.com/mjios/archive/2013/03/10/2952258.html
2015-04-08 08:25:09
526
原创 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
617
原创 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
3166
原创 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
2288
原创 cell.textLabel不为空, cell.detailTextLabel=nil.
有的时候你会沮丧的发现 cell.textLabel不为空, cell.detailTextLabel=nil.这是因为初始化时UITableViewCellStyle设置的不对。UITableViewCellStyle成设置成下面的试试UITableViewCell *cell = [[UITableViewCell alloc]initWithSty
2014-11-08 17:08:35
1069
原创 为数据表对象(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
1045
原创 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
3019
原创 导航栏标题的设置以及左右按钮的颜色、选取照片弹出UIImagePickView时状态栏上移问题、View向上旋转某个角度
1.设置颜色字体 picker.navigationBar.titleTextAttributes=@{NSForegroundColorAttributeName:[UIColor whiteColor]};
2014-09-28 19:37:41
891
原创 coreData添加对象到默认数据库时(用sqliteManager添加的数据),IOS8出现问题的解决思路
如果你程序首次加载时,是使用工程中写好的sqlite文件,
2014-09-19 10:44:16
1946
原创 晃动设备、读取本地的Html文件、避免cell子视图的重用,分享到Facebook Twitter
系统所有的字体 NSLog(@"familyNames==%@ fontNamesForFamilyName=%@",[UIFont familyNames],[UIFont fontNamesForFamilyName:@"Helvetica Neue"]);
2014-09-13 09:05:00
834
原创 nil string parameter错误出现的原因
NSURL *soundUrl = [[NSURLalloc] initFileURLWithPath:[[NSBundlemainBundle] pathForResource:[self.chooseSoundTableViewcellForRowAtIndexPath:indexPath].textLabel.textofType:@"mp3"]];
2014-09-02 16:49:12
2153
原创 动画的渐变效果
-(IBAction)translucentViewDown:(id)sender{ CGContextRef context=UIGraphicsGetCurrentContext(); [UIView beginAnimations:nilcontext:context]; [UIView setAnimationCurve:UIViewAnimation
2014-09-02 10:44:40
548
原创 真机测试常见的错误
1.A valid provisioning profile for this executable was not found.解决方法在
2014-08-26 16:47:51
615
原创 Xib处理coreData数据库的增删改查常见错误
1.拖一个emptyXib文件(个人理解相当于self),在上面拖七个UItableViewCell.这时在- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath方法中返回定制的cell变量在界面上并没有显示,这是因为并没有在self上加载Vie
2014-07-21 19:21:59
786
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人