Update AppDelegate.m

add code via web