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 12-08-2008, 03:58 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2008
Location: Oceanside, CA
Posts: 570
aryaxt is on a distinguished road
Question Custom UI Objects

Hi. I need to be able to create custom objects. I have done this in other languages by just creating a class and inheriting from an object for example Image object in C#.

Is it possible to this is with xcode and interface builder.
I need to create an object named Chip. which is inheriting from UIImage.
and add an attribute called chipAmount.
and then load the image path depends on the chip amount any way to do this?


Thank You
aryaxt is offline   Reply With Quote
Old 12-08-2008, 05:11 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 802
scottiphone is on a distinguished road
Default

You can subclass just by doing New -> New File (most likely select UIView)
Change UIView to UIImageView and check the init.
Then in IB add a UIImageView but change it's class to your new name.

However it's sometimes better to incorporate other classes rather than subclass them depending on what you want to do. In your case your class could just hold an UIImageView and the other instance variables you want. Especially if you're not changing the drawing or override the touches and events.
scottiphone is offline   Reply With Quote
Old 06-19-2009, 12:42 AM   #3 (permalink)
iPhone Developer
 
Join Date: Jan 2009
Location: India , Pune
Posts: 44
ameya is on a distinguished road
Send a message via Skype™ to ameya
Default For Complete custom UI control

For Complete custom UI control check this UICatlog

Joe Hewitt

But the catlog is not properly delegated cannot have call back.
ameya is offline   Reply With Quote
Reply

Bookmarks

Tags
custom, iphone, object, ui object

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: 357
9 members and 348 guests
akphyo, blueorb, fredidf, iAppDeveloper, iGamesDev, Kirkout, MarkC, mottdog, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

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