如题,在objective-c中,如何实现每隔1分钟就执行我写好的代码
15分
NSTimer,
http://blog.csdn.net/nicktang/article/details/6881345
5分
[NSTimer scheduledTimerWithTimeInterval:2
target:self
……继续阅读 »
11年前 (2015-05-06) 614浏览 0评论
0个赞
传说iphone应用程序只能读写自己沙盒中的document目录,那我怎么把在我这个应用程序照的照片存储在相册中呢?
40分
相册是公用的,可以用UIImageWriteToSavedPhotosAlbum
……继续阅读 »
11年前 (2015-05-06) 913浏览 0评论
1个赞
- (void)startRemote
{
NSThread *myThread = [[NSThread alloc]
initWithTarget:self selector:@selector(mThreadFunc) param:self];
[myThread start]……继续阅读 »
11年前 (2015-05-06) 848浏览 0评论
0个赞
请问iOS的堆栈概念 和windows的有什么区别么?
另外
– (void)fun
{
NSString* str = [[NSString alloc] initWithString:@”string”];
NSLog(@”%d”, [str retainCount……继续阅读 »
11年前 (2015-05-06) 682浏览 0评论
0个赞
压缩分辨率是有现成接口的。但是请问在不改变大小的情况下进一步的压缩是否有现成的API?即降低图片的色深怎么实现
40分
这些都有现成的API
比如:UIImageJPEGRepresentation等
相比MS的GDI+更好用、更多
解决方法可以先搁置,请问是否确定一定可以实现在不改变大小的情况下进一步的压缩
……继续阅读 »
11年前 (2015-05-06) 683浏览 0评论
0个赞
如题
发现
char * buff = [alloca length];
不行
40分
可以用c来分啊
malloc
然后free
……继续阅读 »
11年前 (2015-05-06) 661浏览 0评论
0个赞
#import “ViewController.h”
@implementation ViewController
-(void)moviePlayerDidFinish:(NSNotification *) aNote{
MPMoviePlayerController*player=[aNote object];
[[……继续阅读 »
11年前 (2015-05-06) 686浏览 0评论
0个赞
我最近在学iphone,【listdata objectAtIndex:row】我就理解为【对象 方法 方法参数】,但是row不是indexPath 的方法啊,这句话怎么理解?
NSUInteger row = [indexPath row];
40分
NSIndexPath在UIKit里增加了row,section两个……继续阅读 »
11年前 (2015-05-06) 787浏览 0评论
0个赞
rt
10分
Take a look at Geonames.org
It””s a free webservice that allow you to get a lot of informations from a long/lat
They also provide a free (and open s……继续阅读 »
11年前 (2015-05-05) 1562浏览 0评论
0个赞