Guest User

Untitled

a guest
Jan 16th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. NSString *str=[[[titles objectForKey:@"rulesTitle"] objectAtIndex:pagina] objectForKey:@"page"];
  2. NSArray *substrings = [str componentsSeparatedByString:@"#"];
  3. NSString *first = [substrings objectAtIndex:0];
  4. NSString *second;
  5. if ([substrings count]>1) {
  6. second = [substrings objectAtIndex:1];
  7. [playScroll loadHTMLString:second baseURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]]];
  8. }
Add Comment
Please, Sign In to add comment