- (void)viewDidLoad
{
[super viewDidLoad];
NSArray *paths = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *fullFileName = [NSString stringWithFormat:@"%@imageArray", documentsDirectory];
imageArray=[[NSMutableArray alloc]initWithContentsOfFile:fullFileName];
}
//where the image need to dispaly..
NSString *str=[NSString stringWithFormat: @"http://iphone.jiujitsucoach.com/includes/timthumb.php?src=%@&h=150&w=150",[imageArray objectAtIndex:currentIndex_]];
NSURL * imageURL = [NSURL URLWithString:str];
NSData * imageData = [NSData dataWithContentsOfURL:imageURL];
UIImage * image = [UIImage imageWithData:imageData];
{
[super viewDidLoad];
NSArray *paths = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *fullFileName = [NSString stringWithFormat:@"%@imageArray", documentsDirectory];
imageArray=[[NSMutableArray alloc]initWithContentsOfFile:fullFileName];
}
//where the image need to dispaly..
NSString *str=[NSString stringWithFormat: @"http://iphone.jiujitsucoach.com/includes/timthumb.php?src=%@&h=150&w=150",[imageArray objectAtIndex:currentIndex_]];
NSURL * imageURL = [NSURL URLWithString:str];
NSData * imageData = [NSData dataWithContentsOfURL:imageURL];
UIImage * image = [UIImage imageWithData:imageData];
No comments:
Post a Comment