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 05-02-2010, 05:42 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 566
Noise is on a distinguished road
Default Drawing to Screen - Fixing this code?

I'm working on a basic drawing app like the one in this thread on iPod Touch Fans.

Now, the issue is that the size of the drawing area won't change. As-is, it cuts off below the status bar. On auto-rotation, the view is still stuck to the same dimensions - preventing it from expanding to the full size of the screen.

Does anyone have suggestions on how to fix this? Here's the section of code I *think* the issue is in the viewDidLoad.

I'd appreciate any help on this.

Code:
- (void)viewDidLoad {
        [super viewDidLoad];
	drawImage = [[UIImageView alloc] initWithImage:nil];
	drawImage.frame = self.view.frame;
	[self.view addSubview:drawImage];
	mouseMoved = 0;
}
Noise is offline   Reply With Quote
Old 05-03-2010, 07:40 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 566
Noise is on a distinguished road
Default

Bump.
Noise is offline   Reply With Quote
Old 09-04-2010, 02:30 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 138
rrichar is on a distinguished road
Default

I need to do the opposite. I need to limit the area the user can paint on to a certain area of the screen. Can you PM me.
rrichar 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: 338
21 members and 317 guests
Abidullah, baja_yu, cgokey, Domele, Duncan C, Fstuff, gbenna, givensur, guusleijsten, HowEver, iphonedevshani, jbro, mdpauley, n00b, newDev, Sami Gh, seokwon lee, SLIC, stanny, Steven.C, WheyLabs
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,113
Posts: 402,877
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

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