iphone - How to remove the brackets in UIAlertView -


i using code

uialertview *alertview = [[uialertview alloc] initwithtitle:@"call forward enabled"      message:[nsstring stringwithformat:@"all calls %@ forwarded voicemail.\n condition:\n %@ ",selected_phone_numbe ,selectedoption]      delegate:self cancelbuttontitle:@"ok"      otherbuttontitles:nil, nil]; 

i want remove brackets in alert view

selected_phone_numbe , selectedoption looks either array or the string contains ( , ).

check class type (class introspection) if array, use array[0].

if string can replace ( & ) empty string.


Comments