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 01-22-2012, 08:10 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 44
Sander is on a distinguished road
Default 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
Sander is offline   Reply With Quote
Old 01-22-2012, 02:14 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 44
Sander is on a distinguished road
Default

The weird thing is, when I copy paste the whole thing in à new
project everything works.
Sander is offline   Reply With Quote
Old 01-22-2012, 02:17 PM   #3 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

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.
Domele is offline   Reply With Quote
Old 01-22-2012, 02:24 PM   #4 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 44
Sander is on a distinguished road
Default

Cleaning the project? Is there an option for that?
Sander is offline   Reply With Quote
Old 01-22-2012, 02:26 PM   #5 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

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.
Domele is offline   Reply With Quote
Old 01-22-2012, 02:32 PM   #6 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 44
Sander is on a distinguished road
Default

I'll give it a try. Tnx
Sander is offline   Reply With Quote
Old 01-22-2012, 02:59 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 Sander View Post
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
__________________
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 01-22-2012, 03:40 PM   #8 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 44
Sander is on a distinguished road
Default

Sorry Duncan but whatsapp do you mean
with header?
Sander is offline   Reply With Quote
Old 01-22-2012, 03:53 PM   #9 (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 Sander View Post
Sorry Duncan but whatsapp do you mean
with header?
The .h file.
__________________
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 01-23-2012, 01:16 AM   #10 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 44
Sander is on a distinguished road
Default

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
Sander is offline   Reply With Quote
Old 01-23-2012, 01:20 AM   #11 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 44
Sander is on a distinguished road
Default

Maybe I should mention that on the left side under resources, behind InfoView.xib is a question mark.
Sander is offline   Reply With Quote
Old 01-23-2012, 08:49 AM   #12 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 44
Sander is on a distinguished road
Default

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
Sander is offline   Reply With Quote
Reply

Bookmarks

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: 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
Powered by vBadvanced CMPS v3.1.0

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