PDA

View Full Version : question about appDelegate




mabedan
Jul 23, 2009, 04:34 AM
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!



dejo
Jul 26, 2009, 01:44 PM
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.