Hello fellow developers, I am trying to include a UIPickerView that looks like the one shown within Oanda's Currency Coverter, because I think it's nice and neat. Please refer to image below.
I have read a few tutorials/samples including Apple's UICatalog but it doesn't seem to show us how to:
reduce the number of rows displayed (Oanda showing 3 rows only)
change the border colour (Oanda showing a black, and I have seen developers using an UIImage to cover up the edges of UIPickerView)
change the highlighted row overlay colour (Oanda has light green)
change the size of the picker
Would appreciate any help with sample code.
alt text http://topace.cc/img/photo.jpg
There is some discussion on the resizing of UIPickerView here, some approaches changed between iOS 3 and 4.
Related
How would you go about creating a rolling breaking news view, as you can see in apples notification center on the iphone (Where the stock is shown)?
Is there any open source examples of this?
Thanks in advance
`https://github.com/cbpowell/MarqueeLabel`
MarqueeLabel is a functional equivalent to UILabel that adds a scrolling marquee effect when the text of the label outgrows the available width (for the given font size). All standard UILabel properties are available in MarqueeLabel and it behaves just like a UILabel.
How I can implement the following screen.
What are ui controls can be used for implementation the same grid behavior?
I'm seeing UITableView, but it doesn't support multi columns. How can be?
Thanks,
Anatoly
How about a UITableViewCell with three (if you count the stars it'll make six) UIImageViews and three UILabels?
You could put three UIImageViews and three UILabels below the images per cell.
Here's a tutorial on how to draw grids in a UITableView.
But for your case I'd do it with interface builder for a custom UITableViewCell:
Basing from your requirements, I think you should use AQGridView,
I found it here: https://github.com/AlanQuatermain/AQGridView
You can download the sample code.
I've downloaded the sample code and run it on my iPad 5.0 Simulator, here is the screenshot:
and what amazed me most is that when you switch your device to landscape mode, it automatically displays the images in four columns (to utilize the space):
I hope this helps.
Customizing UITableViewCell to contain many cells inside and rendering each cell as needed.
Anyway, it's not a good practice to do that in your controller. You should build an external control to handle it.
Please take a look at my UIGridView. It uses the explained technique and produce the result that you want.
Here is the screenshot:
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 am looking for how to style a label in a UITableView cell, so that it shows how many children/messages are in the next view controller.
This is used in Apple's Mail app, to show how many messages are in the inbox or account.
I am sure that this is a UILabel, but what font, color and how to make the oval around it?
The font is surely bold Helvetica because that's what Apple uses everywhere in the iPhone UI. To get the exact color, you could take a screenshot and then sample the color with a color picker. For the rounded corners, experiment with a rather large label.layer.cornerRadius.
Instead of using UILabel.layer.cornerRadius, which results in terrible scrolling performance (as mentioned in my comment), subclass UILabel with a custom drawRect.
Here is the version that I use: http://gist.github.com/500793
I want to create a custom accessory icon to go to the right of my cell in a UITableView and want it to match the blue >, I have tried creating from scratch and it looks good on its own but when put next to a cell with the blue > it looks messy where the two icons look similar but not of the same style. Does anyone know where I can get hold of the original DetailDisclosure button icon so I can use it as a base for my icon? BTW tried doing a screen capture, but you don't get any transparency information with that.
Regards
Dave
Check this blog post:
http://0xced.blogspot.com/2009/04/extract-uikit-artwork.html
Put that code in a project and run it in the simulator. It will extract the artwork from UIKit and save it in the app's Documents directory. NSLog(documentsPath) to see where they're going. It will save out tons of images for pretty much everything.