Is anyone aware of a website or download to reference for the size of UI elements or standard iphone interface stuff? What I mean is something that gives the height of elements like the status bar, tab bar, navigation bar, default tableviewcell height (and such things as width of accessory view, indentation, etc), default icon sizes, default font sizes for UI elements (if they need to be mimicked, for instance), etc etc etc.
It's amazing how many times I have to go back to find a reference or estimate the size and position of a standard element. It seems like it would be an invaluable resource that could fit on a printed page or two.
Found most of what I was looking for here:
http://www.idev101.com/code/User_Interface/sizes.html
This website has a PSD with the iPhone UI elements that might give you the exact information you are looking for.
http://www.teehanlax.com/blog/2009/06/18/iphone-gui-psd-30/
Related
Most of my views will have 5 - 10 widgets and I am trying to figure out how to make the buttons, dropdowns look their best.
I have tried setting their dimensions as a % of the current screen size but this is not an ideal solution for very large screen or very small ones. Mobile users will be the primary end users.
What is the best way to effect this So a mobile user will actuall be able to see a decent sized button a small screen while a PC user will not end up looking at some huge buttons if they are full screen.
You can use ViewPort Meta tag to maintain proper widths and heights for your web applications on mobile devices too.. with out changing all the layouts .
The viewport meta tag to control layout on mobile browsers.
See the below question also ,which I already answered to set the viewport .
Achieving min-width with viewport meta tag
In modern browsers, apart from the viewport as is mentioned in the other response and which applies to the entire document, you could use css scale transformations.
See this pure html/css example
What I do in GWT is whether, I have different .ui.xml or css bundle for desktop and mobile permutations with different scale values, or I change it by code (computing scale factor in base of window size, browser type, etc).
In the second case you can use gwt element methods:
panel.getElement().getStyle().setProperty("WebkitTransform", "scale(0.65, 0.65)");
panel.getElement().getStyle().setProperty("MozTransform", "scale(0.65, 0.65)");
or I'd rather use the gwtquery syntax:
$(panel).css($$("-webkit-transform: scale(0.65, 0.65); -moz-transform: scale(0.65, 0.65);"));
I need to grab the image for the UITableViewCellEditingStyleInsert button (green +). Of course, I would like to get it in the regular size and in 2x. I didn't think this would be so difficult, but I am having a hard time finding it. Is there a way to get this without a major hack?
There are some sites that provide free downloadable vectors of the iPhone User Interface elements. You should be able to get the green button from these packages. Since they are vectors, you can resize them to any size you'd like without losing detail.
Here's one site that links to multiple sites offering these downloads:
iPhone UI Elements
If none of these work for you, try searching online for something like 'iPhone vector UI elements.'
In terms of providing a nice text popup for users in an iPhone application, after they click on a help icon, what approach/style do people recommend?
In my view (re User Experience) I would have thought something that say:
has a thin border with rounded edges around it
takes up most of the screen
has a vertical scroll bar if there is more text than can fit on one screen
has a way for the user to dismiss
Interested in:
recommended approach re UI design
how to implement (which IOS UI objects to use)
nice to have - example code
The thing about designing iPhone UI elements, including popups, is that you're very strongly recommended to do it "Apple's way" - follow their Human Interface Guidelines and use standard UI controls. The two ways I can think to do this offhand:
Use a UIAlertView for a single chunk of text - it includes buttons for dismissal, properly shaded and colored for consistency with the rest of the OS and other apps. This is a quick, one- or two-line way of putting text on the screen and taking it off again. The downside: there's no scrolling capability, and the box scales with the text you put in it (i.e. you can't fix a size for the view).
Use a new view (in a UIViewController) presented modally. This option gives you more flexibility and the capability to scroll, but at the cost of greater setup.
If you decide to go the second route, follow your existing instincts for how to lay it out - you'll take over the entire screen on an iPhone, so you have some wiggle room. Your rounded-edges guess and vertical scrolling are right on (consider a UIScrollView for implementation).
I am pretty new to iPhone development and currently working on an application which includes a view that performs a simple numerical calculation. In particular, the user enters 3 or 4 values into text fields and the view displays the result. Something along the lines of http://www.moneychimp.com/calculator/compound_interest_calculator.htm
What is the nicest way to achieve this? I am currently using simple UITextFields and a UILabel for the result but it doesn't look nice or "native-like". What UI object would be best to use?
Thank you!
It's entirely up to you. You're using the right classes for actual input- it comes down to how you choose to style those classes. I'd suggest looking at the documentation for UIView and CALayer (youView.layer, and include QuartzCore framework in your project).
A good start might be to choose a color scheme, a background for your app, and the look and feel you're shooting for- this will inform your styling. Try looking for apps that you think are elegant and attractive, and boil down what they do and what you like about them.
I'd say;
use a grouped table style (with the white tables with round corners on a blueish striped background)
embed settings values directly in the cell (aligned to the right) as much as possible
you can show a relevant keyboard (text, numbers) or picker view to let the user pick values, directly when they tap the cell. Use sliders and switches where relevant.
You may want to take a look at http://www.inappsettingskit.com/, we are currently investigating it for the same purpose and it seems to do the job
You can use either a UISlider or a UIPickerView if some of your values have limits.
You can use UISwitch for toggles.
You can also switch the default keyboard for your textfields to be numeric.
Other than that you seem to be on the right track.
Also, sometimes putting a view inside a scrollview makes things seem cooler even if its only one page. The auto bounce on scrollviews is kind of cool.
I wanted to generate one fix view using interface builder, but the size of that view is exceeding the size of iphone screen,and I am not able to maximize screen. I wanted to show table view in that screen.
I did enabled scrolling but that didn't work,
Update 1:
Actually I wanted to show thumbnail image inside cell and i want to show 5 cell so 5 thumbnail image,those images are static. So which is a better way to achieve this ,interface builder or programming?
Hope this is clear enough.
Your question is not terribly clear, so this is the question that I am attempting to answer here:
You want to have a table view which has five rows, each of which has a small image.
Short answer: you can't do this entirely in the Interface Builder. What you can do is define your table view, including the "look," scrolling abilities, etc. And then in the same XIB file you would define the table cells (which can include your pictures, captions and what have you).
You then have to connect the two together programatically. Apple provide plenty of examples in the SDK on how to do this.