I used this code to write strings in my UIPickerView:
self.component1Data = [NSArray arrayWithObjects: @"Sample", @"Sample1", @"...", nil];
How can I get NSString instead of "sample"? I tried it with "% @", but it does not work:
self.component1Data = [NSArray arrayWithObjects: @"%@",string, @"%@",string2, @"...", nil];
source
share