开发者

iphone Power on 3G radios using url request not working

开发者 https://www.devze.com 2022-12-19 07:01 出处:网络
using sdk 3.1.2 on 开发者_运维百科iphone I am using the following code to activate the 3G connection but it doesn\'t seem

using sdk 3.1.2 on 开发者_运维百科iphone

I am using the following code to activate the 3G connection but it doesn't seem to be working, anyone know what i need to do

NSURLConnection *conn = [[NSURLConnection alloc] initWithRequest: [NSURLRequest requestWithURL: [NSURL URLWithString:@"http://www.google.com"]] delegate:self]; [conn cancel];


Why are you calling:

[conn cancel];

Shouldn't you do:

[conn start];

or something that actually tries to open the connection?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号