Problem getting size of Website Xcode
Posted
by Michael Amici
on Stack Overflow
See other posts from Stack Overflow
or by Michael Amici
Published on 2010-06-02T10:15:14Z
Indexed on
2010/06/02
10:53 UTC
Read the original article
Hit count: 177
When i try and compile I come up with a warning that reads initialization makes pointer from integer without a cast. No clue why. I am just trying to get the size of a website.
#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);
}
© Stack Overflow or respective owner