01-22-2012, 08:10 AM
#1 (permalink )
Registered Member
Join Date: Jan 2012
Posts: 44
Unknown type name
Ha all, I hope someone can help me:
I get an " unknown type name "InfoView" "
Below is part of my code:
Code:
// SubView1.h
// 1st Ipad App
//
// Created by macbook pro on 19-01-12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "InfoView.h"
@interface SubView1 : UIViewController <UITableViewDataSource, UITableViewDelegate>
{
NSString *myData;
UIPopoverController *popoverController;
InfoView *myPopOver;
//TableView
UITableView *mainTableView;
NSMutableArray *contentsList;
Kind Regards Sander
01-22-2012, 02:14 PM
#2 (permalink )
Registered Member
Join Date: Jan 2012
Posts: 44
The weird thing is, when I copy paste the whole thing in à new
project everything works.
01-22-2012, 02:17 PM
#3 (permalink )
Just helping out.
Join Date: Feb 2011
Posts: 2,565
Have you tried cleaning your project?
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.
New app - See screenshots and details at
www.globaclock.com .
If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
01-22-2012, 02:24 PM
#4 (permalink )
Registered Member
Join Date: Jan 2012
Posts: 44
Cleaning the project? Is there an option for that?
01-22-2012, 02:26 PM
#5 (permalink )
Just helping out.
Join Date: Feb 2011
Posts: 2,565
Go to Product>Clean.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.
New app - See screenshots and details at
www.globaclock.com .
If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
01-22-2012, 02:32 PM
#6 (permalink )
Registered Member
Join Date: Jan 2012
Posts: 44
I'll give it a try. Tnx
01-22-2012, 02:59 PM
#7 (permalink )
Cocoa Junkie
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Quote:
Originally Posted by
Sander
Ha all, I hope someone can help me:
I get an " unknown type name "InfoView" "
Below is part of my code:
Code:
// SubView1.h
// 1st Ipad App
//
// Created by macbook pro on 19-01-12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "InfoView.h"
@interface SubView1 : UIViewController <UITableViewDataSource, UITableViewDelegate>
{
NSString *myData;
UIPopoverController *popoverController;
InfoView *myPopOver;
//TableView
UITableView *mainTableView;
NSMutableArray *contentsList;
Kind Regards Sander
Post the header for InfoView
01-22-2012, 03:40 PM
#8 (permalink )
Registered Member
Join Date: Jan 2012
Posts: 44
Sorry Duncan but whatsapp do you mean
with header?
01-22-2012, 03:53 PM
#9 (permalink )
Cocoa Junkie
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Quote:
Originally Posted by
Sander
Sorry Duncan but whatsapp do you mean
with header?
The .h file.
01-23-2012, 01:16 AM
#10 (permalink )
Registered Member
Join Date: Jan 2012
Posts: 44
O, of course the header file.....
Here it is
Code:
//
// InfoView.h
// 1st Ipad App
//
// Created by macbook pro on 21-01-12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
//for passing variables (datacenter)
#import "AppDelegate.h"
// for passing variables
//#import "SubView1.h"
@interface InfoView : UIViewController
{
}
@property (retain, nonatomic)NSMutableArray *list;
@property (weak, nonatomic) IBOutlet UIPickerView *pickerView;
@end
By the way, cleaning the project didn't work
01-23-2012, 01:20 AM
#11 (permalink )
Registered Member
Join Date: Jan 2012
Posts: 44
Maybe I should mention that on the left side under resources, behind InfoView.xib is a question mark.
01-23-2012, 08:49 AM
#12 (permalink )
Registered Member
Join Date: Jan 2012
Posts: 44
Well guys,
I can't seem to find the problem.
I created a new viewcontroller subclass and just copy pasted the source code from the old one. Now everything works.
Something must have been messed up in my project I think.
But it takes me too much time to figure it out.
Feel free to tell me if you know what was wrong.
Thanks everyone anyway.
Kind Regards
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
» Advertisements
» Online Users: 391
10 members and 381 guests
7twenty7 , Atatator , FrankWeller , glenn_sayers , guusleijsten , iphonedevshani , MAMN84 , QuantumDoja , tim0504 , VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,674
Threads: 94,122
Posts: 402,907
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Atatator