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 02-10-2009, 11:19 PM   #1 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 60
arjit292 is on a distinguished road
Default not abe to change the background of the window ..

I am not able to change the background of the window ...
i m using this code ...

window=[[UIWindow alloc] initWithFrame :[[UIScreen mainscreen] bounds]];
[window setbackgroundColor:[UIColor redColor]];

i tried changing each and every color but in stumilater its showing only black .. any help ...
arjit292 is offline   Reply With Quote
Old 02-11-2009, 12:04 AM   #2 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 60
arjit292 is on a distinguished road
Question

actually i am using the glpaint example and i wanna change the background which i am not able to do any idea how should i proceed ...
arjit292 is offline   Reply With Quote
Old 02-11-2009, 01:22 AM   #3 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 64
ziconic is on a distinguished road
Default

Oooh this won't be easy. glpaint is an OpenGLES app, so you'd want to draw the background using OpenGLES. You could create a quad using 2 triangles and apply the background as a texture map, but perhaps there might be an easier way.

I think it's possible to overlay a transparent OpenGL view on top of a regular view, but you'll need to deal with the fact that OpenGL uses premultiplied alpha. I remember playing with this once but could never get it to work right. You're probably much better off doing all your compositing in OpenGL instead of a hybrid Quartz/OpenGL approach.
__________________
Storie
Download Storie now - it's free!
ziconic is offline   Reply With Quote
Old 12-30-2010, 11:37 PM   #4 (permalink)
Registered Member
 
yguler's Avatar
 
Join Date: Dec 2010
Location: toronto, ontario
Posts: 12
yguler is on a distinguished road
Default

// set the background color to something COLD
self.drawingView.backgroundColor = [UIColor colorWithRed:0.5 green:0.5 blue:1.0 alpha:0];
add this code to Appcontroll.m
yguler is offline   Reply With Quote
Reply

Bookmarks

Tags
background, window

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: 326
5 members and 321 guests
Anwerbl, guusleijsten, HowEver, LEARN2MAKE, mottdog
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,879
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

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