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-09-2011, 04:24 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 50
Maxner is on a distinguished road
Default How do i make UIButtons half cornered half rounded and with little arrow?

How can I make UIButtons half cornered half rounded or completely cornered, and add the little arrow to the right? Look in the settings app and you'll see what i mean. I know that i could just add an image but ive seen other apps that didnt add images and made it look like that! I know this question is stupid but i have to know it!

Last edited by Maxner; 07-09-2011 at 04:34 AM.
Maxner is offline   Reply With Quote
Old 07-09-2011, 09:34 AM   #2 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by Maxner View Post
How can I make UIButtons half cornered half rounded or completely cornered, and add the little arrow to the right? Look in the settings app and you'll see what i mean. I know that i could just add an image but ive seen other apps that didnt add images and made it look like that! I know this question is stupid but i have to know it!
Are you talking about the buttons that go in the navigation bar?

You can use the default button bar items, or you can create your own.

To create your own, look at using a stretchable image, with the stretchableImageWithLeftCapWidth:topCapHeight: method.

What you do is create a minimal sized image that has the characteristics of your button. Then, when you resize it, it moves the corners outwards and uses the color of the center pixel to color the center portion. It takes fiddling with the source image and the cap width/height to get it to work right.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 07-09-2011, 10:20 AM   #3 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 50
Maxner is on a distinguished road
Default

nope i mean this:


General Photos and Air Me wold be the half cornered half rounded buttons, i think you will get it now.


Edit:
Also in Cydia and iFile you find there Buttons:


Last edited by Maxner; 07-09-2011 at 10:23 AM.
Maxner is offline   Reply With Quote
Old 07-09-2011, 10:44 AM   #4 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by Maxner View Post
nope i mean this:


General Photos and Air Me wold be the half cornered half rounded buttons, i think you will get it now.


Edit:
Also in Cydia and iFile you find there Buttons:

That's a grouped table view. The system does that automatically when you set the style of a table view to grouped.

If you want buttons that work in groups like that you'd have to do it yourself. You would need some sort of grouping object, and a custom subclass of UIButton that draws itself differently depending on if its the first item in a group, a middle item, or the last item.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 07-09-2011, 11:04 AM   #5 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 50
Maxner is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
That's a grouped table view. The system does that automatically when you set the style of a table view to grouped.

If you want buttons that work in groups like that you'd have to do it yourself. You would need some sort of grouping object, and a custom subclass of UIButton that draws itself differently depending on if its the first item in a group, a middle item, or the last item.
ok, thank you at least now i know what it is!
Maxner is offline   Reply With Quote
Old 07-09-2011, 02:44 PM   #6 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 50
Maxner is on a distinguished road
Default

Hey i dont wanna open a new thread for this, so ill just ask it here: Since i know that i have to use a TableView for it, can i load views from a table view, and I mean not just a detail view, but a specific UIViewController for every Cell in the table. Is that possible?
Maxner is offline   Reply With Quote
Old 07-09-2011, 03:25 PM   #7 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by Maxner View Post
Hey i dont wanna open a new thread for this, so ill just ask it here: Since i know that i have to use a TableView for it, can i load views from a table view, and I mean not just a detail view, but a specific UIViewController for every Cell in the table. Is that possible?
Of course you can. When you use a table view, you have to designate an object to serve as its delegate. Usually it's your view controller. Just put in a tableView:didSelectRowAtIndexPath method that pushes a new view controller.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Reply

Bookmarks

Tags
arrow, cornered, rounded, uibutton

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: 360
9 members and 351 guests
apatsufas, chemistry, lendo, leostc, Leslie80, lzwasyc, MarkC, SamorodovAlex, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

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