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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 04-29-2009, 11:05 PM   #1 (permalink)
syd
New Member
 
Join Date: Feb 2009
Posts: 17
Default When to have uiview.h/m along with viewcontroller.h/m

So I am really confused about when to have 'xyz' view.h/m and when to have 'xyz'viewcontroller.h/m. What is the exact difference between a view controller class file and uiview class file. From my understanding mostly the IB actions/outlets are declared and implemented in the controller files, but in some apple's sample code it is declared in mainview class file (the metronome sample code).
What is it that i can or cannot do in a viewcontroller class file that i can/can't do in the uiview class file?
Any explanations will help a lot.
Thanks
syd is offline   Reply With Quote
Old 04-30-2009, 12:19 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,558
Send a message via ICQ to smithdale87 Send a message via AIM to smithdale87 Send a message via Skype™ to smithdale87
Default

View Controllers are completely different from views.

A view controller contains a view, but it is not a view itself. You would need to cerate a separate view.h/m if you were e.g. doing custom drawing in the view by overriding the drawRect method.
smithdale87 is offline   Reply With Quote
Reply

Bookmarks

Tags
uiview, viewcontroller, xcode

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: 233
16 members and 217 guests
ADY, AragornSG, Dani77, Dattee, Duncan C, fkmtc, HDshot, HemiMG, mer10, Promo Dispenser, Punkjumper, Rudy, sacha1996, sneaky, spiderguy84, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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