xcode6.0 模拟器打不开

摘要: 只要设置下这个就行了本来以为虚拟机的问题 都把虚拟机从新安装了杯具啊 阅读全文
posted @ 2014-06-12 11:36 爱直至成伤lie 阅读(1043) 评论(2) 推荐(0) 编辑

ios copy项目文件到Documents目录下

摘要: NSFileManager*fileManager =[NSFileManager defaultManager];NSError*error;NSArray*paths =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);NSString*documentsDirectory =[paths objectAtIndex:0];NSString*txtPath =[documentsDirectory stringByAppendingPathComponent:@"txtFi 阅读全文
posted @ 2012-10-12 13:43 爱直至成伤lie 阅读(8724) 评论(0) 推荐(0) 编辑

获取沙盒中某种文件的个数 和名字

摘要: +(NSArray *)getFilenamelistOfType:(NSString *)type fromDirPath:(NSString *)dirPath{ NSMutableArray *filenamelist = [NSMutableArray arrayWithCapacity:10]; NSArray *tmplist = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:dirPath error:nil]; for (NSString *filename in tmplist) { NSString *. 阅读全文
posted @ 2012-10-10 12:30 爱直至成伤lie 阅读(774) 评论(0) 推荐(0) 编辑

ios页面跳转问题

摘要: 如果我的是A->B->C后,我想直接从 C->A 应该怎么做???这是我的问题看了这个帖子不太明白 这是10楼的解决办法 ,虽然 写的很清楚 ,但是还是没懂啊 哎 谁怪咱太菜了经过高人指点 搞定了 结合自己的项目在页面c中 这么写 - (IBAction)logOut:(id)sender { [LoginData sharedLoginData].login_user=nil; [LoginData sharedLoginData].local_login_user=nil; [self dismissModalViewControllerAnimated:NO]; [[N 阅读全文
posted @ 2012-09-28 14:50 爱直至成伤lie 阅读(1111) 评论(0) 推荐(1) 编辑

ios6兼容性问题

摘要: 以前自己代码写的不规范if(alertView.message == @"Well done!" && buttonIndex==0)这样是可以判断的,现在升级后不行了 必须写规范 这样if([alertView.message isEqualToString: @"Well done!"] && buttonIndex==0)后续继续更新。。。。。。。 阅读全文
posted @ 2012-09-25 12:53 爱直至成伤lie 阅读(253) 评论(0) 推荐(0) 编辑

mac msn 登陆失败

摘要: 我的msn好几天没有登陆了,今天终于闲下来会,解决办法如下:我在登陆页面切换了下用户,从新输入了下密码,搞定,嘿嘿 阅读全文
posted @ 2012-08-23 17:34 爱直至成伤lie 阅读(208) 评论(0) 推荐(0) 编辑

mysql 数据库中as 和where用法

摘要: CREATE TABLE `commoncore` ( `id` int(11) unsigned NOT NULL auto_increment, `CCorder` int(11) default NULL, `CCIndex` text, `Standard` text, `Grade` text, `Strand` text, `Cluster` text, `Standard #` text, `Cluster2` text, `importData` text, PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=latin1;这是表 阅读全文
posted @ 2012-08-20 12:02 爱直至成伤lie 阅读(16477) 评论(0) 推荐(0) 编辑

点击屏幕 获得屏幕坐标ios

摘要: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; CGPoint touchPoint = [touch locationInView:self.view]; NSLog(@"%f==%f",touchPoint.x,touchPoint.y); int stringFloat = (int)(touchPoint.x); int stringFloat1 = (int)(touchPoint.y); NSLog(@& 阅读全文
posted @ 2012-08-09 16:34 爱直至成伤lie 阅读(11826) 评论(0) 推荐(1) 编辑

control may reach end of non-void function

摘要: 发生这种现象,一般是因为,非void类型的函数没有提供返回值只要在函数最后添加上return something;//something根据你的函数返回类型进行更改 阅读全文
posted @ 2012-07-26 09:30 爱直至成伤lie 阅读(2924) 评论(0) 推荐(0) 编辑

mysql字符串按数值排序方法

摘要: select * from vocab_geography where chapter order by chapter+0 asc 按id对应的数值降排select*fromvocab_geography wherechapter orderby chapter*1asc 按id对应的数值升排 阅读全文
posted @ 2012-07-23 12:48 爱直至成伤lie 阅读(1516) 评论(0) 推荐(0) 编辑