iphone - Adding a viewController as subView programmatically -
i building iphone app. i need display settings menu user when button clicked. menu not covering whole screen , there specific location want appear. how should that? i understand how set hidden property of subview give illusion subview not onscreen. however, need view controller subview ( meaning .m , .h files well). how can add subview programmatically @ specific location. thank much what describing behavior of uipopovercontroller. unfortunately, available use on ipad's , not iphone's or ipod touches. if want develop need develop scratch. it's not ui pattern see on iphone due screen size, imagine need build custom uiview , add main window view specific size (smaller screen size) , view's frame.origin set value other (0,0). just make sure trying achieve falls within apple's human interface guidelines.