|Mar 7, 2009, 01:31 PM||#1|
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.
CGAffineTransform transform = CGAffineTransformMakeRotation(3.14159/2); self.window.transform = transform; CGRect contentRect = CGRectMake(0, 0, 480, 320); self.window.bounds = contentRect;
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
Failure is not an option. It comes bundled with Windows.
Last edited by liptonlover; Mar 7, 2009 at 01:37 PM.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Resolved: NSDate may not respond to +dateWithString||thedollarhunter||iPhone/iPad Programming||4||Nov 19, 2011 07:28 PM|
|OMG! - Most of my Mac Applications are not responding||xDeathReaperx||Mac Applications and Mac App Store||11||Jan 14, 2011 12:03 AM|
|Scroll View not working in the bottom view of Split View in Cocoa||binDev||Mac Programming||1||Apr 15, 2010 03:42 PM|
|Screen not responding to "tap" but responds to flicks?||bmonster||iPhone Tips, Help and Troubleshooting||1||Feb 2, 2008 10:54 AM|
|Need help getting an NSStatusItem with a custom view to respond to mouse clicks||br-||Mac Programming||10||Oct 21, 2006 03:25 AM|
All times are GMT -5. The time now is 02:02 PM.