Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 7, 2009, 12:31 PM   #1
liptonlover
macrumors 6502a
 
Join Date: Mar 2008
view not responding

This is a project I just started, all that happens so far is that a view programatically becomes the top subView of a window, and the view has two buttons on it. Both buttons are standard UIButtons, not messed with. One is linked to a method so that I can switch back to another view. But when I start the app, neither button responds. They don't 'depress' or anything. By commenting out certain lines of code, I found the two problematic ones. This code is in the ______AppDelegate.m file that comes with new projects, in the application did finish launching method, after the makeKeyAndVisible line.

Code:
CGAffineTransform transform = CGAffineTransformMakeRotation(3.14159/2);
	self.window.transform = transform;
	CGRect contentRect = CGRectMake(0, 0, 480, 320);
	self.window.bounds = contentRect;
I THINK understand what's going on, but I did not write this code. I grabbed it off the internet because I was having no luck getting the same results. This does what I want, except for the problem. The 3rd and 4th lines are the ones that locked up the screen when used, I commented out the first two and it still worked, though the view didn't rotate.
Can anyone help?
Thanks in advance, Nate


Edit: After a little messing around, the problem seems to be the two zeros in the last line. The original code actually had a -80 and an 80, I changed that since it offset the view, but apparentely otherwise the touchevents are offset. But I can't find a solution anywhere. So.... any help will still be greatly appreciated
Nate
__________________
Failure is not an option. It comes bundled with Windows.
Writing portfolio

Last edited by liptonlover; Mar 7, 2009 at 12:37 PM.
liptonlover is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: NSDate may not respond to +dateWithString thedollarhunter iPhone/iPad Programming 4 Nov 19, 2011 06:28 PM
OMG! - Most of my Mac Applications are not responding xDeathReaperx Mac Applications and Mac App Store 11 Jan 13, 2011 11:03 PM
Scroll View not working in the bottom view of Split View in Cocoa binDev Mac Programming 1 Apr 15, 2010 02:42 PM
Screen not responding to "tap" but responds to flicks? bmonster iPhone Tips, Help and Troubleshooting 1 Feb 2, 2008 09:54 AM
Need help getting an NSStatusItem with a custom view to respond to mouse clicks br- Mac Programming 10 Oct 21, 2006 02:25 AM


All times are GMT -5. The time now is 02:56 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC