Does anyone know if the sdk provides a way to display a larger picker view on the iPad?
I see it in many iPad apps but not sure if it's a built-in ui element or not. If it's custom made where can. Find some sample code?
It looks kind of like this http://images.mobilism.org/?dm=VCIS
A check mark appears when you select it.
Set the frame.size.width to the value that fits your needs.
Related
Recently I was asked to adapt to large-screen phones because the standard mode view looks too small on large-screen phones. So I thought of a simple way: display the zoom-in view in the standard mode of the large-screen phone. But i can't find a good way to realize it.
The original idea was to set the currentMode setting of UIScreen, but iOS does not support the creation of external UIScreenMode...
If you are not using a storyboard, use code with frame. You can use masonry, use multipliedBy. If you don’t change anything code and want to directly adapt, that’s unlikely.
I wrote game code and played, using iPhone 6 Plus simulator, and it is working fine, but once I switch to other devices, UI is messed up... I do not want to do this from scratch. Is there any way to fix this problem by, for example, adding some code...? I thought about adding UIScreen but I do not know how to do that. If you could give me some advice, it is very helpful.
The standard approach to implementing user interfaces for multiple screen dimensions is to use auto layout. You should read Apple's guide to auto layout.
New to iOS developing here. Basically I am creating a soundboard app. I have the app essentially working (aka buttons returning sounds).
However my app only looks proper on the iPhone 6. I just have one ViewController in my main storyboard. When I run the simulator for the 4S/5/6+ or iPads, my buttons are pretty much everywhere.
I tried playing with size classes/autolayout through Apple's documentation, but couldn't get it working properly. What's the best (easiest ;) ) route I can follow to have it basically looking the same on ALL devices?
PS: I have one background placed too, I don't mind if it looks different on all devices since it's pretty minimalistic, but if someone can shed some light here too, that would be great.
Thanks!
You have a few options:
1) Continue your plan spending time getting friendly with Auto Layout and Size Classes. This might be difficult at first, but it will really pay off later. You should use the Assistant Editor's Preview mode to let you see iPhone 4, 5 and 6 side-by-side as you work so you can make sure your layouts look great everywhere.
2) Use a component like UIStackView where layouts are automatically adjusted to fit various devices. If your soundboard is as simple as a grid of buttons, you can do that in just a few minutes using a stack view.
3) Use a component like UITableView or UICollectionView where content is designed to scroll. Using this method you design only one sound button of your app (i.e., enough to play one sound) then have iOS replicate that across all the sounds you want. When your interface is presented on a device of a different size iOS will just make the content scroll.
Very roughly, option 1 makes you do all the work; option 2 makes your layout shrink down until it fits the available space; and option 3 makes your layout stay the same size no matter what, but you should expect it to scroll on some devices.
There is no right solution; it's entirely down how you want your app to work.
I am very first time developing the Spinner in iOS.
I searched a lot for default Spinner view in iOS, but failed.
What I get is, two ways to design spinner like view in iOS.
UIPickerview
Custom TableView which will be displayed on Click of DownArrow Button
I found the tutorial for UIPickerview.
But There are some OS orientation for this,
Means I want the UIPickerview in different Look & feel with selection style, also Scrolling of picker is not as I want.
So I was thinking to go for second options.
But Is there any other superior way to achieve this task,
As I think the second option is GOOD, but NOT BEST.
What I want is like the image below, its from Android,
I want to go for the same in iOS.
Thanks for help..
I think what you are looking is here
But I use RMPickerViewController which is more powerfull.
I am new to mobile development with Titanium Studio. I want to create a picker with a little smaller size. I tried setting the Height and Width property but of no use. And I came across below link:
Changing the height of the picker
But I saw that it scales the whole picker including the content in it. I want to reduce the size of the picker without reducing the size of its content. And any idea to customize the picker like changing the background color would be more helpful. Thanks in advance.
Do not try to modify the picker. If you do any transforming in the UI controls of Apple, you'll get a rejection from Apple, since this is a Apple Specific UI element, so any egregious resizing of it will violate the Human Interface guidelines. The general rule is to not use scaling transforms with any of the native UI elements, Apple is big on the unified look and feel so many reviewers will rip you for it.
Please refer the following links
IOS Human interface guidelines
setting the height or width of the picker actually set the height or width of the rows/ entries of the picker. similarly it will effect the width of the Colmms of the picker, if you are using the multi picker.
i will suggest that u use a model window and add background color/image then add the picker to thad window. you can apply animation on opening and closing of model window. you can also specify the position of the picker in this way.
hope this will help you to achieve what you are trying