a1phanumeric/iPhone-AR-Toolkit

View Controller Doesn't Respect the Parent View Controller's Size

Closed this issue · 3 comments

It looks like the ARViewController is mean to be run full screen, but when putting it inside of another viewController or a UINavigationController, it should position elements correctly inside the parent view controller's view.

Screenshots with highlighted positioning issues:

IMG_4982

IMG_4983

Looking into...

Almost done - I'll upload the code tomorrow.

Just before I do close this issue - I will have fixed the following issues:

  • Horizontal orientation where the navigation bar or tab bar is present
  • When rotating back to portrait, and specifically when using both a tab bar and navigation bar, the frame is too large. (Note: when using a navigation bar only, this works fine)

Working Screenshots

iOS Simulator Screen shot 15 Jan 2013 00 48 07
iOS Simulator Screen shot 15 Jan 2013 00 50 33
iOS Simulator Screen shot 15 Jan 2013 00 50 43

Non-Working Screenshots

iOS Simulator Screen shot 15 Jan 2013 00 50 56
This was after rotation

iOS Simulator Screen shot 15 Jan 2013 00 52 33
This happens whenever a navigation bar is used - but will self-right when not using a tab bar.

Hopefully fixed. See 0d0c5f4