subclass UIViewController and basic template - MacRumors Forums
Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 28, 2008, 07:30 AM   #1
arnieterm
macrumors regular
 
Join Date: Aug 2008
subclass UIViewController and basic template

I am working on an IPhone app using xcode 3.1.1 and objectivec2.0. My app requires that majority of views have three things in common [a home button, a main heading, and vertical image].
I am creating all views through code and no use of interface builder.First of all I have created a subclass from UIViewController called UIBasicViewController and added all my basic controls there.

Afterwards, I created some other view controllers that are inheriting from UIBasicViewController. In these view conrollers, I am creating my specific stuffs.
My problem is that the loadView of UIBasicViewController is being called but not that of child view controllers.
For example:

Code:
@interface UIBasicViewController : UIViewController 
{

@interface UIMainScreenViewController : UIBasicViewController 
{
}
Does it has anything to do with subclassing levels? Why the loadView of UIMainScreenViewController is not being called?
The loadView of UIBasicViewController is called as usual. Also I am not adding any new view like viewnam addSubView: newview etc.
Just adding my specific stuff on the view coming from the parent class
arnieterm is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Add elements to View from subclass Pades iPhone/iPad Programming 1 May 9, 2014 06:51 AM
Subclassing a subclass - question regarding IBOutlets and IBActions moonman239 iPhone/iPad Programming 1 Sep 27, 2013 08:15 PM
Resolved: Trying to subclass NSView Hans Kamp Mac Programming 9 Mar 25, 2013 04:43 PM
Trying to subclass UIView Hans Kamp iPhone/iPad Programming 3 Mar 25, 2013 12:15 AM
Free note app with basic formatting basic HTML Subu iPhone and iPod touch Apps 0 Mar 1, 2013 03:44 AM

Forum Jump

All times are GMT -5. The time now is 01:13 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC