I'm creating an iPad application which needs a UIPopoverController like this one (I mean, with buttons):
I tried using a UIViewController but it gives me an enormous popup with a white background.
Can anyone explain me how to make one? I cannot find any documentation or example code. Thanks.
You need -[UIActionSheet showFromBarButtonItem:animated:] instead of a UIPopoverController.
Related
When I am designing the interface everything looks fine.But when I run the project some text fields move and get mixed with other text fields.Some images go down.How do I lock everything in place ,so that the gui is exactly the way I designed it
hi iOsBody there are some layout problem is bellow Tips you can set properly.
in your issue you have use UINavigationController in every viewController but when you set XIB layout you can not add this 45px UInavigationBar space in XIB that's why you facing this issue.
while you use this in ios6 You can also use AutoLayout but its some time getting Creshed in ios5 or bellow ios
So please check proparly x,y and also put calculate px of UInavigationBar or statusbar while create Interface.
You can fix property of Textfield & image. So, it'll not move anywhere & stay at their own places.
Hopefully, it will help you.
Thanks.
If your view using AutoLayout functionality than uncheck it.
see the option Use AutoLayout in your main view .
1)this will help u auto size the components
Take a look at this picture:
I have something like a toolbar includes some buttons. user can move to left and right as you see. I know how to set the button in toolbar, but I don't know how can I fix this kind of navigation on the toolbar. Is it possible in the toolbar?
If yes, how?
if no, do you know any control in iOS that can help me?
It might be worth browsing through Cocoa Controls. They really have a lot of excellent pre-made custom controls for iOS and the Mac.
Personally, I would just create my own custom UIScrollView subclass which contains some UIButtons. Then set the scrollview to scrollView.pagingEnabled = YES after setting a correct content size.
Apple has an excellent guide on using scrollviews with paging here:
http://developer.apple.com/library/ios/#DOCUMENTATION/WindowsViews/Conceptual/UIScrollView_pg/ScrollViewPagingMode/ScrollViewPagingMode.html
I'm a beginner with iOS apps, and I inherited an app I need to make some changes to.
The main view of the app is a tab view, and we'd like to add below the tab view a box with some labels (and text). The labels shouldn't change as the tabs change.
How do I do this?
I noticed something called a SplitView, but I wasn't sure how to use it, and if it's relevant for my need.
I hope that my needs are clear enough. If anyone could make recommendations as to how to do it/point me in the direction of a tutorial, I'd be very appreciate.
Thanks in advance!
The UISplitView is only for iPads. It will not work on the iPhone as far as I know. How are you creating your UITabBar. If you do it programatically you might be able to create it like something like this:
Pseudo Code
UITabBarController *mySpecialController = [[UITabBarController alloc] initWithFrame:CGRectMake('put in coordinates here')];
I have a requirement to pop up a small option-view on clicking bar button item, similar to this image.
How can I achieve this? Any tutorial or link is highly appreciated.
I'm not sure this is available on iPhone but I know that on iPad UIPopoverController it looks so.
Apple Documentation
You can find source code here to create PopoverController on iPhone !
You need to create an UIView and set for backgound you image. In this new view you can add UIButtons to let the user to select an option.
How do I switch between multiple UIView's using one UIViewController just like the iPhone home screen. If you need clarification please ask, don't thumbs down please.
use a UIScrollView...this sample code from apple does what you want to do