小编sin*_*sin的帖子

如何在相机打开avcapturemanager时绘制网格线

我想显示网格线,就像相机打开时出现的那样.我正在使用AVCaptureManager.我应该使用核心图形来绘制网格线吗?这些网格线的大小是多少?

谢谢

grid ios avcapture

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

- [NSURL _CFURLRequest]:发送到实例的无法识别的选择器

我在我的程序中使用JSONKit解析谷歌地方api但我的应用程序崩溃时出现以下错误 - [NSURL _CFURLRequest]:无法识别的选择器发送到实例

     NSString* URL = [NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/place/search/json?location=28.632808,77.218276&radius=500&types=atm&sensor=false&key=AIzaSyDHft2g5IDshIpXS17uOtZzkqGGgj-p1RQ"];

NSError* error = nil;
NSURLResponse* response = nil;


NSURLRequest *URLReq = [NSURL URLWithString:URL];
//[request setURL:URL];
//[request setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];
//[request setTimeoutInterval:30];

NSData* data = [NSURLConnection sendSynchronousRequest:URLReq returningResponse:&response error:&error];

if (error)
{
    NSLog(@"Error performing request %@", URL);
    NSLog(@"%@", [error localizedDescription]);
    return;
}

NSDictionary *json = [data objectFromJSONData];

NSArray *places = [json objectForKey:@"results"];


NSLog(@"Google Data: %@", places);
Run Code Online (Sandbox Code Playgroud)

json nsurlconnection ios jsonkit google-places-api

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