0
當我嘗試編譯時,我想出了一個警告,讀取初始化使得整型指針沒有強制轉換。不知道爲什麼。我只是想獲得一個網站的大小。獲取網站Xcode大小的問題
#import "Lockerz_RedemptionViewController.h"
@implementation Lockerz_RedemptionViewController
-(IBAction)startLoop:(id) sender {
NSData *dataNew = [NSData dataWithData:[NSData dataWithContentsOfURL:[NSURL
URLWithString:@"http://www.google.com/"]]];
NSUInteger *len = [dataNew length]; //error is here
NSLog(@"%@", len);
}