Error while attempting to output data onto console in xcode

Posted by Michael Amici on Stack Overflow See other posts from Stack Overflow or by Michael Amici
Published on 2010-05-29T21:03:46Z Indexed on 2010/05/29 21:12 UTC
Read the original article Hit count: 297

Filed under:
|

I am trying to output general data (source code) from a website, but it just sits there. Can't figure out if its the interface or the code. Would someone double-check for me?

 #import "Lockerz_RedemptionViewController.h"

@implementation Lockerz_RedemptionViewController
-(IBAction)start: (id) sender {
 while (1) {


  NSMutableData *mydata = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://ptzplace.lockerz.com/"]];

  NSString *output = [[NSString alloc] initWithData:mydata encoding:NSASCIIStringEncoding];
  NSLog(output);


 }
}

© Stack Overflow or respective owner

Related posts about xcode

Related posts about console