My first question! I have been through many discoveries through'm able to address through the many discoveries written without the help of the RSS reader (Stakhovrflo!) But I'm stump
< Code> NSString * urlbase = [[NSString alloc] initWithFormat: [links3 objectAtIndex: indexPath.row]]; [[UIApplication ShareApp] Opal: [nsadd URL URL with string: urlbase]]; NSCharacterSet * whitespaces = [NSCharacterSet whitespaceCharacterSet]; NSPredicate * noEmptyStrings = [NSPredicate predicateWithFormat: @ "SELF = ''"] ;; NSArray * parts = [urlbase components separationBecauseSetset: white space]; NSArray * filtered array = [parts filtered using the array: noEmptyStrings]; Urlbase = [filtered array componentJondidBusiness string: @ ""]; NSLog (@ "% @% i", URLBase, 4353); [[UIApplication ShareApp] Opal: [nsadd URL URL with string: urlbase]];
Link 3 is an NSMutableArray
with array strings. The first few lines are without work sought to destroy the place at the beginning of each string of the array, which is stored in the 'urlbase', so they seem to be a good time to come out. When we NSLog urlbase, we see:
http://www.feedzilla.com/r/D7E6204FEDBFE541314B997AAB5D2DF9CBA2EFEE
However, when we use : [[UIApplication sharedApplication] openURL: [NSURL URLWithString: urlbase]]
we see: http://www.feedzilla.com/r/D7E6204FEDBFE541314B997AAB5D2DF9CBA2EFEE%0A
How can I fix this? Can I remove those tail elements in some way? ! Thank you
Work code:
NSMutableArray * links3 = [[NSMutableArray alloc] init]; RSSAppDelegate * appDelegate = (RSSAppDelegate *) [[UIApplication shared application] representative]; Links3 = appDelegate.links; NSLog (@ "% @% i", [links 3 object at index: indexpath.ro], 3453); NSString * urlbase = [[NSString alloc] initWithFormat: [links3 Objektotandaks: Indekspathkro]]; [[UIApplication ShareApp] Open URL: [NSL URL URL Authorization: URLBase]]; NSCharacterSet * whitespaces = [NSCharacterSet whitespaceCharacterSet]; NSPredicate * noEmptyStrings = [NSPredicate predicateWithFormat: @ "SELF = ''"] ;; NSArray * parts = [urlbase components separationBecauseSetset: white space]; NSArray * filtered array = [parts filtered using the array: noEmptyStrings]; Urlbase = [filtered array componentJondidBusiness string: @ ""]; NSLog (@ "% @% i", URLBase, 4353); NSLog (@ "% @% i", URLBase, 345346); NSString * Default = [urlbase stringByTrimmingCharactersInSet: [NSCharacterSet newlineCharacterSet]]; NSURL * hellothere = [NSURL URLWithString: fixed]; NSLog (@ "% @% i", Nourotter, 54); [[UIApplication shared application] Opal: [NSL URL URL String: Fixed]];
Hey, I did not say that it was beautiful. Try the following:
There is a line feed for the last part of your URL string.
Comments
Post a Comment