Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-28-2011, 12:35 PM   #1 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 13
dpatel is on a distinguished road
Default Draw table with rounded corner

Hi,

I have a table view with 4 rows. I want to show it as its in the 'Add Alarm" view in 'Clock application'. i.e. with round rectangle and then display a picker view below it.

How can I do that?

dPatel
dpatel is offline   Reply With Quote
Old 07-28-2011, 01:23 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 194
mavrik5150 is on a distinguished road
Default

Set your Tableview to a Grouped TabledView and that will give you the Rounded Corners. For the UIPicker, if you are doing everything in Interface Builder (i.e. manually adding a TableView to a plain View) then you could just Drag over the Picker View as well to fill up the bottom half of the screen. If you are doing it in code then I'm pretty sure you could just create the Picker View and set the bounds to be the bottom half of the screen just like the alarm.
mavrik5150 is offline   Reply With Quote
Old 07-28-2011, 02:07 PM   #3 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,346
iSDK is on a distinguished road
Send a message via AIM to iSDK
Default

Import quartzcore and do something like this:

Code:
[self.tableView.layer setCornerRadius:7];

I have inserted 7 as it's what I normally use, but that probably is no where near the right size for completely rounding the tableView corners.
Quote:
Originally Posted by dpatel View Post
Hi,

I have a table view with 4 rows. I want to show it as its in the 'Add Alarm" view in 'Clock application'. i.e. with round rectangle and then display a picker view below it.

How can I do that?

dPatel
iSDK is offline   Reply With Quote
Old 07-29-2011, 11:15 AM   #4 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 13
dpatel is on a distinguished road
Default

Thanks guys for your reply.
dpatel is offline   Reply With Quote
Reply

Bookmarks

Tags
uitableview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 400
14 members and 386 guests
7twenty7, blasterbr, buggen, chiataytuday, dre, fiftysixty, HemiMG, jimmyon122, jonathandeknudt, LEARN2MAKE, nyoe, pungs, tymex, UMAD
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,668
Threads: 94,121
Posts: 402,902
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jonathandeknudt
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:01 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0