question about appDelegate

Discussion in 'iOS Programming' started by mabedan, Jul 23, 2009.

  1. mabedan macrumors newbie

    Jul 3, 2008
    hey guys,

    here's a basic question i have, but i couldn't find the answer in the reference...

    i've a UIwindow, in which i've created a UIView using addSubView. how can i let the appDelegate recieve actions from the subView? i know how to do it when the subView is added through the interface builder, with IBActions... but not when i've added the subView via code.

    thanx in advance!
  2. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    I wouldn't recommend that approach. You're better off setting up a viewController to handle the actions of the view. That's one of its purposes in life.

Share This Page