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
Post a Comment