Tuesday, July 05, 2011

How to Split string into substring in iOS Sdk

You can also split a string by a substring, using NString’s componentsSeparatedByString method.
NSString *list = @”amal, arun, balaji, dhina, guru, hari, kumar,mahes”;
NSArray *listItems = [list componentsSeparatedByString:@", "];

No comments:

Create a list in SwiftUI with sticky section headers

 Sample Code import SwiftUI struct ContentView : View {     @State var isCustomViewControllerDisplayed = false     @State private va...