I have a few UIpickerView’s that sends setNeedsDisplay to their parent view.
Is there any way to get the identity of the sender ?
Thanks
Shani
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no way for you to get the sender of that method. There are a couple important things to note here: first, you shouldn’t be overriding
setNeedsDisplayat all, you should overridedrawRect:which will be called if the view needs to be redrawn. Second, I would suggest you useUIPickerView‘s delegate property, set it your parent view, and then do any processing you need to do in thepickerView:didSelectRow:inComponent:delegate method.