#define YOUR_APP_STORE_ID 545174222 //Change this one to your ID
static NSString *const iOS7AppStoreURLFormat = @"itms-apps://itunes.apple.com/app/id%d";
static NSString *const iOSAppStoreURLFormat = @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d";
[NSURL URLWithString:[NSString stringWithFormat:([[UIDevice currentDevice].systemVersion floatValue] >= 7.0f)? iOS7AppStoreURLFormat: iOSAppStoreURLFormat, YOUR_APP_STORE_ID]]; // Would contain the right link
//Here is a string containing white space let strWithSpace = "This is swift coding" let strWithNoSpace = strWithSpace .replacingOccurrences(of: " " , with: "%20" ) print ( strWithNoSpace ) OutPut:- This%20is%20swift%20coding Happy Coding:)
Comments
Post a Comment