I am very new to iphone app dev, this is my first app i'm building. I'm trying to get local image to show up with no success. This is the code...
The code works fine, if i switch the image source to the files hosted remotely it works, but i don't want remote, i want them locally viewed. Any help will be appreciated
Code:
- (void) createContentPages
{
NSMutableArray *pageStrings = [[NSMutableArray alloc] init];
for (int i = 1; i < 5; i++)
{
NSString *contentString = [[NSString alloc]
initWithFormat:@"<html><head></head><body style='padding:0px;margin:0px;'><img src='page%d.jpg' width='320' height='460' /></body></html>", i, i];
[pageStrings addObject:contentString];
}
pageContent = [[NSArray alloc] initWithArray:pageStrings];
}
The code works fine, if i switch the image source to the files hosted remotely it works, but i don't want remote, i want them locally viewed. Any help will be appreciated