I'm extremely new to objective-c and iOS development and was just looking for advice at how best to tackle this type of styling. Basically these types of field sets (see screenshot) appear everywhere with rounded edges and borders between rows.
Is there some type of functionality in interface builder to handle this already or would I be looking at using background image(s) and then adding the form parts above that?
iOS objective-c iphone fieldset styling rounded edges rows
That's a UITableView. They are a major interface element (maybe the major element) in iPhone apps. You can set up a table view to have rows that act like buttons, or information-entry fields, as here, or really in any way that you care to write the code for. See the Programming Guide for discussion of their use.
Related
i am just developing some simple app which show the periodic table but my problem is how can i achieve the periodic table like layout in my iPhone app in just landscape format.
i have tried to search some CustomGridLayout sdk for IOS but not suitable for me
have goggled the things but not succeeded
following is the reference of periodic table layout which i want to implement
There is a couple way to do this:
1) You may use UICollectionView with custom cell. for this.With cell size equal element cell. But you will hit a several problem here: Some cells should be disabled, and customized in non standard way. In this case section is not useful for you. Overlay button in top on collection view may be difficult to positioning in storyboard.
2) You can use UIContainerView with totally custom view and colors. Dynamically added to custom row and column. This ofc have some flaws. Harder to build layout in storyboard (compared to (1) solution), memory management issues.
I'm an iOS developer looking for a solution to a tricky problem.
I need to create a grid view/ mosaic view to layout cells of different sizes (both width and height).
I basically need the functionality of a GMGridView, with horizontal scrolling/paging, the ability to edit, and drag cells to new locations, thus rearranging the entire grid view. I've looked at all of the current open source grid views out there, and found none with variable sized cells.
One solution I have thought about is 2 tableviews both rotated for the horizontal scrolling, and then intercept some UITableView scrolling methods, to then scroll the other tableview together. This is not ideal, as I will be unable to move a cell from one view to another, and I'm not sure how happy apple will be about it.
I also know of some possible (confidential?) support for this coming in the next version of iOS, but would like to keep my app supporting previous versions of iOS.
Thanks for any insight you can provide.
I realize this post is kind of old, but here is a list of relevant projects: *https://github.com/betzerra/MosaicUI
*https://github.com/betzerra/MosaicLayout
GridViews on iOS are a pain. Fortunately Apple is coming up with UICollectionViews that are optimized to build grids. This is coming in iOS6 and it's still under NDA so check out the documentation on Apple's website for more information.
The question you need to solve now is whether you want iOS5 retro-compatibility or not
When I was first learning Java, the JGoodies Look 'n' Feel seemed great, and the same thing is available for WPF in the form of WPF Themes and WPF Futures. Are the any such libraries for iOS with which I can skin my app? I seem to get iOS screenshots with anything I search for, but I'm looking for things like UITableView header backgrounds or tab bar backgrounds. Apps always seem more professional when they have nicer, custom control backgrounds.
A lot of developers create their own custom table cell interfaces in Interface Builder and load those as the cells for a Table View. This gives you many options and is fairly straightforward, and you can get something much more interesting than the stock table view appearances.
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 want to build an iPad application that has a user interface close to the one that has been used for iBooks, or the one that Apple uses for the iPhone and iPad operating systems, so is there any component in Cocoa that makes it easy for me?
In fact, I thought about the UIImagPickerController, but I'm sure yet.
iBooks appears to be just a UITableView with a set of custom UITableViewCells that are drawn like the shelves. There is presumably a custom class which represents the books.
Apart from the level of drawing required, and the horizontal element, there is nothing 'special' in the way it is done.