|
|
#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.
Code:
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 ![]() Nate Last edited by liptonlover; Mar 7, 2009 at 12:37 PM. |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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.







Linear Mode

