Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-07-2010, 01:51 AM   #7 (permalink)
Syeda Aasma
Registered Member
 
Join Date: Jul 2009
Posts: 2
Default

Hi
I sorted out the problem
there are 2 alternative ways to do this
1. add new UIViewController subclasses to your EAGLView project
2. start a new view based application and then add all your EAGLview classes into it.
import ur EAGLView.h class into viewcontroller .h class and create an object of it. e.g.,
#import "EAGLView.h"
........
EAGLView *myGL;

then ue the following linnes of code to switch from your view controller to gl view

myGL = [[EAGLView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
myGL.animationInterval = 1.0 / 60.0;
[myGL startAnimation];
self.view = myGL;
[myGL release];

your IBOutlet will pass on the controll to the glview.
Syeda Aasma is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 225
10 members and 215 guests
Ajameel, alexz1, Bertrand21, damienbern, Erle, Karts9, lowf, Oliver Drobnik, SirGeraint, smilespray
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,279
Threads: 39,072
Posts: 171,335
Top Poster: smasher (2,575)
Welcome to our newest member, yogen81
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:53 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.