objective c - UIView frame.size.width is equal to zero? -


i created subclass of uiview , within subclass try access views' width property. try width this,

cgfloat width = self.frame.size.width; nslog(@"width: %f", width); 

however reason width i'm getting equal 0.000000

when create view i'm setting frame property using cgrectmake() function , view displaying why width property return zero?

if subclass uipickerview, irrespective of frame set, width , height 320,216 (for portrait).
make sure self in code points picker.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -