ios - How to remove conflicting return type? -


i dividing string , and storing in splitarray , want return it.

but getting conflicting array on first line

- (nsarray *)subdividingstring:(nsstring *)string {     nsarray *splitarray = [string componentsseparatedbystring:@" "];     return splitarray; } 

first: there nothing wrong code, having issue (e.g. call subdividingstring:).

second: shouldn't introduce method doing 1 doing already. use

nsstring *mystring = @"some string"; nsarray *chunks = [mystring componentsseparatedbystring:@" "]; 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -