CHANGED:remove the addSubView logic code from AppDelegate to ViewController