Okay so Im not sure if this site can help me but I figured I would try it out.
I built a mobile webpage and you can view it in the iPhone app I am creating now. The mobile webpage has different photo albums. Long story short, I would like WHEN user clicks one photo album for an UIImageView to pop up instead of viewing the photo album through the mobile website.
I thought of something like this:
So it can tell when I open a photo album, because each photo album contains "id=" in the URL. But my code doesn't constantly check every URL it goes to. I don't know how to do this.
Any ideas? Or different ways around this?
I built a mobile webpage and you can view it in the iPhone app I am creating now. The mobile webpage has different photo albums. Long story short, I would like WHEN user clicks one photo album for an UIImageView to pop up instead of viewing the photo album through the mobile website.
I thought of something like this:
Code:
NSString *currentURL = webViewPictures.request.URL.absoluteString;
if ([currentURL rangeOfString:@"id="].location == NSNotFound) {
NSLog(@"string does not contain id=");
} else {
webViewPictures.hidden = true;
}
So it can tell when I open a photo album, because each photo album contains "id=" in the URL. But my code doesn't constantly check every URL it goes to. I don't know how to do this.
Any ideas? Or different ways around this?
Last edited by a moderator: