小编use*_*354的帖子

没有使用dispatch_async调用并重复NSTimer的方法

我正在开发一个应用程序,我想在单独的队列中使用调用方法dispatch_async.我希望在一定的时间间隔后重复调用该方法.但是方法没有被调用.

我不知道什么是错的.这是我的代码:

dispatch_async( NotificationQueue, ^{

        NSLog(@"inside queue");
        timer = [NSTimer scheduledTimerWithTimeInterval: 20.0
                                                 target: self
                                               selector: @selector(gettingNotification)
                                               userInfo: nil
                                                repeats: YES];

        dispatch_async( dispatch_get_main_queue(), ^{
            // Add code here to update the UI/send notifications based on the
            // results of the background processing

        });
    });

-(void)gettingNotification {
    NSLog(@"calling method ");
}
Run Code Online (Sandbox Code Playgroud)

iphone nstimer grand-central-dispatch ios

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

iPhone应用程序中的Google云存储集成

我正在开发一个iPhone应用程序,我想集成谷歌云存储,以便我可以存储图像.请任何人都可以帮助我或提供样品的链接.我试过搜索但找不到.

谢谢

iphone ios google-cloud-storage

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

CX在iphone中创新存储集成

我正在开发一个iPhone应用程序,我正在集成CX云存储,以便我可以存储图像和音频文件.我正试图加载登录页面,UIWebView但它给我错误.

这是我的代码

    NSURL *loginUrl=[NSURL URLWithString:[NSString stringWithFormat:@"
    https://www.cx.com/mycx/oauth/authorize?client_id=%@&redirect_uri=%@",clientID,redirectURi]];
    NSURLRequest *requestObj=[NSURLRequest requestWithURL:loginUrl];
    [webview loadRequest:requestObj];
Run Code Online (Sandbox Code Playgroud)

我收到了以下错误

Error Domain = WebKitErrorDomain Code = 101"无法完成操作.(WebKitErrorDomain错误101.)"UserInfo = 0x68102e0 {}

iphone uiwebview ios

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

NSURLErrorDomain错误-1021

我正在开发一个应用程序,我集成了Dropbox.登录正确完成我也可以在dropBox中创建文件夹.但是当我尝试加载文件时,我收到了错误

我发现以下错误

error making request to /1/files_put/dropbox/Info.plist - Error
Domain=NSURLErrorDomain Code=-1021 "The operation couldn’t be
completed. (NSURLErrorDomain error -1021.)" UserInfo=0x6859bc0
{destinationPath=/Info.plist,
sourcePath=/Users/bcod/Library/Application Support/iPhone
Simulator/5.0/Applications/0E1EE43C-8F6B-40FA-8696-D3992DA2DCE5/DBRoulette.app/Info.plist}
Run Code Online (Sandbox Code Playgroud)

我在创建文件夹时没有收到此错误.

iphone nsurl dropbox ios nsurlerrordomain

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