开发者

iphone Power on 3G radios using url request not working

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜