ios - AlertView vs. AlertController in iOS7 and iOS8 -


i've been reading alertcontroller should used ios 8 , up, while in ios7 versions alertview used.

well i'm working on app i'd compatible ios7 , up. have either choose alertview have ios7 users use , not 8, or choose alertcontroller , neglect on ios7 not able use it?

i'd both crowds, seems can use 1 , isolate group of users.....is there way utilize both?

you can use both. 1 ios 7 , 1 ios 8. this:

if ([uialertcontroller class]) }   // ios 8 - show alert controller } else {   // ios 7 - show alert view } 

Comments