小编Rat*_*tan的帖子

58
推荐指数
4
解决办法
2万
查看次数

42
推荐指数
2
解决办法
5万
查看次数

使用html5开发的iphone应用程序可以通过Apple商店销售吗?

使用html5,CSS和Javascript开发的iphone应用程序可以通过Apple商店销售吗?

iphone

6
推荐指数
1
解决办法
5294
查看次数

NSURLCache不在iOS 7中存储缓存数据

下面给出的代码适用于iOS 6,但它不适用于iOS 7.

NSCachedURLResponse cachedURLResponse = [[NSCachedURLResponse alloc] initWithResponse:response data:data userInfo:nil storagePolicy:NSURLCacheStorageAllowed];
[[NSURLCache sharedURLCache] storeCachedResponse:cachedURLResponse forRequest:request];
NSLog(@"Cached response is %@", [[NSURLCache sharedURLCache] cachedResponseForRequest:request]);
Run Code Online (Sandbox Code Playgroud)

在iOS 6中,我获得了缓存的响应数据,但在iOS 7中,它返回null.我使用以下命令在App委托中设置了NSURLCache对象:

NSURLCache *urlCache = [[NSURLCache alloc] initWithMemoryCapacity:2 * 1024 * 1024
                                                     diskCapacity:2 * 1024 * 1024
                                                         diskPath:nil];
[NSURLCache setSharedURLCache:urlCache];
Run Code Online (Sandbox Code Playgroud)

缓存无法在iOS 7中运行的原因是什么?

iphone objective-c nsurlcache ios ios7

5
推荐指数
1
解决办法
1489
查看次数

如何在Android应用程序中集成G​​oogle Reader?

我想在我的Android应用程序中集成G​​oogle Reader.请帮我说明怎么做?

android google-reader

2
推荐指数
1
解决办法
1190
查看次数

MPMoviePlayerPlaybackDidFinishNotification的问题

我有一个奇怪的问题.我需要在播放结束时停止播放器.我在用

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(stopAudio) 
                                        name:MPMoviePlayerPlaybackDidFinishNotification
                                        object:nil];
Run Code Online (Sandbox Code Playgroud)

虽然玩家停止了但是第一次停止了两次,第二次调用了4次,第3次调用了6次,依此类推.我不知道如何解决这个问题.我的stopAudio方法是

- (void)stopAudio {

[player pause];
[player stop];
Run Code Online (Sandbox Code Playgroud)

}

我有一个自定义按钮,通过它可以调用stopAudio方法.

任何建议Plz ......

iphone

1
推荐指数
1
解决办法
4403
查看次数