Setting ViewController delegates in iPhone runtime
Posted
by Stein Rune Risa
on Stack Overflow
See other posts from Stack Overflow
or by Stein Rune Risa
Published on 2010-02-05T06:41:03Z
Indexed on
2010/05/27
6:01 UTC
Read the original article
Hit count: 436
I am writing an iPhone application and needed to use the address book functionality. For this to work, it is necessary to specify a ABPeoplePickerNavigationControllerDelegate on the ViewController.
The problem is that I am creating all fields and buttons dynamically runtime, and thus does not have any custom ViewController - using only UIViewController class.
My question is then - how can I specify the delegate runtime without having to create a ViewController class just for this purpose.
© Stack Overflow or respective owner