Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
reading the origin of a UISlider's frame returns strange results. in two tests, both returned the proper Y value, as set in IB, but the X value seems to always be short by 2.

attached is a simple project with a UISlider on the window. the UISlider is set as X:50, Y:50 in IB. upon launching the app, NSLog returns:

Code:
Slider Origin = 48.0, 50.0
 

Attachments

  • CGRectUISlider.zip
    15.4 KB · Views: 53
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.