If you would like to open app using Application Id in iOS iTunes store, you can use the following code.

+ (NSURL *)urlForAppId:(NSString *)appId {
    return [NSURL URLWithString:[NSString stringWithFormat:@"https://itunes.apple.com/app/apple-store/id%@?mt=8", appId]];
}