Re: iPhone orientation problems
Hi Laurent No apologies please, your input did guide me in the right direction. The structure of my application was some kind of workaround of the problem where NavigationController cannot be loaded from a nib, at least not like the other type of controllers due to the fact that this guy creates its view dynamically. So instead of using a plain controller that has no child support, I took the UITabBarController, inserted my graphical view as its first item and configured the navigator with my custom controllers and guess what, gone the orientation problem. The problem lies somewhere in the framework. I tested my application yesterday on iOS4 and again a surprise, the orientation shift is transmitted by only after the view finishes its apparition on screen. Thank you both Matt and Laurent for your help. Eric. On 2010-07-26, at 17:05, Laurent Daudelin wrote: On Jul 26, 2010, at 13:33, Matt Neuburg wrote: On Mon, 26 Jul 2010 10:03:14 -0400, Eric Giguere eric.gigu...@videotron.ca said: Hi Matt Thanks for the advice. So, if I got it right, I have to remove the second controller from my main window nib file and put it elsewhere. Otherwise, it gets created at the same time as the other. I did that to go around a problem with the Navigation Controller. This guy doesn't get loaded when you put it alone in a nib and then initialize it by loading the nib file. Pretty strange... So, with your suggestion, I should keep the navigator interface with the main xib and create / release the other view when needed. Got you right? I don't see why what you're describing has anything to do with what I said. My advice was about the window's primary subview. If that's controlled by a navigation controller in your app, then it is that navigation controller that I'm suggesting you would need to worry about. m. On 2010-07-25, at 15:39, Matt Neuburg wrote: Everywhere, it is said that it should be handled automatically when adding the subview to the window but it doesn't seem to work, at least not with my controller layout. My experience is that you have to wait until the window's primary subview has itself rotated before you do any further interface configuration. I add code like this to my main subview's controller: - (void)didRotateFromInterfaceOrientation: (UIInterfaceOrientation)fromInterfaceOrientation { if (!didInitialSetup) { // once, at startup: set up interface didInitialSetup = YES; [self setUpInterface]; } } That way I don't create the nested interface until the main view has settled down into its initial rotation. Otherwise, if I do things too soon, x and y are reversed and everything is wonky after that. This trick has really helped me with autorotation, though I don't know if it will be useful in your case. m. It's a little hard to see what the original poster's problem is, so maybe my message is irrelevant, but as far as orientation is concerned, I don't think having the controllers all in the same xib is the problem because I do it in a couple of apps. My latest app is a tab bar-based app. Each tab item brings a navigation-based view which contains a UITableView. The key is to make sure you subclass all the controllers in the view hierarchy, starting with the tab bar view controller all the way down to the UITableViewController so that they can all return YES to the shouldAutorotateToInterfaceOrientation:. My MainWindow.xib file has the layout of the tab bar view with a custom navigation controller for each tab bar item. Of course, each UITableView is loaded from a different xib but it all works fine. If I missed something, I apologize. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com Eric Giguere eric.gigu...@videotron.ca smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iPhone orientation problems
Hi Matt Thanks for the advice. So, if I got it right, I have to remove the second controller from my main window nib file and put it elsewhere. Otherwise, it gets created at the same time as the other. I did that to go around a problem with the Navigation Controller. This guy doesn't get loaded when you put it alone in a nib and then initialize it by loading the nib file. Pretty strange... So, with your suggestion, I should keep the navigator interface with the main xib and create / release the other view when needed. Got you right? Thanks a lot! Eric. On 2010-07-25, at 15:39, Matt Neuburg wrote: Everywhere, it is said that it should be handled automatically when adding the subview to the window but it doesn't seem to work, at least not with my controller layout. My experience is that you have to wait until the window's primary subview has itself rotated before you do any further interface configuration. I add code like this to my main subview's controller: - (void)didRotateFromInterfaceOrientation: (UIInterfaceOrientation)fromInterfaceOrientation { if (!didInitialSetup) { // once, at startup: set up interface didInitialSetup = YES; [self setUpInterface]; } } That way I don't create the nested interface until the main view has settled down into its initial rotation. Otherwise, if I do things too soon, x and y are reversed and everything is wonky after that. This trick has really helped me with autorotation, though I don't know if it will be useful in your case. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#applescriptthings Eric Giguere eric.gigu...@videotron.ca smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iPhone orientation problems
On Mon, 26 Jul 2010 10:03:14 -0400, Eric Giguere eric.gigu...@videotron.ca said: Hi Matt Thanks for the advice. So, if I got it right, I have to remove the second controller from my main window nib file and put it elsewhere. Otherwise, it gets created at the same time as the other. I did that to go around a problem with the Navigation Controller. This guy doesn't get loaded when you put it alone in a nib and then initialize it by loading the nib file. Pretty strange... So, with your suggestion, I should keep the navigator interface with the main xib and create / release the other view when needed. Got you right? I don't see why what you're describing has anything to do with what I said. My advice was about the window's primary subview. If that's controlled by a navigation controller in your app, then it is that navigation controller that I'm suggesting you would need to worry about. m. On 2010-07-25, at 15:39, Matt Neuburg wrote: Everywhere, it is said that it should be handled automatically when adding the subview to the window but it doesn't seem to work, at least not with my controller layout. My experience is that you have to wait until the window's primary subview has itself rotated before you do any further interface configuration. I add code like this to my main subview's controller: - (void)didRotateFromInterfaceOrientation: (UIInterfaceOrientation)fromInterfaceOrientation { if (!didInitialSetup) { // once, at startup: set up interface didInitialSetup = YES; [self setUpInterface]; } } That way I don't create the nested interface until the main view has settled down into its initial rotation. Otherwise, if I do things too soon, x and y are reversed and everything is wonky after that. This trick has really helped me with autorotation, though I don't know if it will be useful in your case. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#applescriptthings ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iPhone orientation problems
On Jul 26, 2010, at 13:33, Matt Neuburg wrote: On Mon, 26 Jul 2010 10:03:14 -0400, Eric Giguere eric.gigu...@videotron.ca said: Hi Matt Thanks for the advice. So, if I got it right, I have to remove the second controller from my main window nib file and put it elsewhere. Otherwise, it gets created at the same time as the other. I did that to go around a problem with the Navigation Controller. This guy doesn't get loaded when you put it alone in a nib and then initialize it by loading the nib file. Pretty strange... So, with your suggestion, I should keep the navigator interface with the main xib and create / release the other view when needed. Got you right? I don't see why what you're describing has anything to do with what I said. My advice was about the window's primary subview. If that's controlled by a navigation controller in your app, then it is that navigation controller that I'm suggesting you would need to worry about. m. On 2010-07-25, at 15:39, Matt Neuburg wrote: Everywhere, it is said that it should be handled automatically when adding the subview to the window but it doesn't seem to work, at least not with my controller layout. My experience is that you have to wait until the window's primary subview has itself rotated before you do any further interface configuration. I add code like this to my main subview's controller: - (void)didRotateFromInterfaceOrientation: (UIInterfaceOrientation)fromInterfaceOrientation { if (!didInitialSetup) { // once, at startup: set up interface didInitialSetup = YES; [self setUpInterface]; } } That way I don't create the nested interface until the main view has settled down into its initial rotation. Otherwise, if I do things too soon, x and y are reversed and everything is wonky after that. This trick has really helped me with autorotation, though I don't know if it will be useful in your case. m. It's a little hard to see what the original poster's problem is, so maybe my message is irrelevant, but as far as orientation is concerned, I don't think having the controllers all in the same xib is the problem because I do it in a couple of apps. My latest app is a tab bar-based app. Each tab item brings a navigation-based view which contains a UITableView. The key is to make sure you subclass all the controllers in the view hierarchy, starting with the tab bar view controller all the way down to the UITableViewController so that they can all return YES to the shouldAutorotateToInterfaceOrientation:. My MainWindow.xib file has the layout of the tab bar view with a custom navigation controller for each tab bar item. Of course, each UITableView is loaded from a different xib but it all works fine. If I missed something, I apologize. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iPhone orientation problems
Everywhere, it is said that it should be handled automatically when adding the subview to the window but it doesn't seem to work, at least not with my controller layout. My experience is that you have to wait until the window's primary subview has itself rotated before you do any further interface configuration. I add code like this to my main subview's controller: - (void)didRotateFromInterfaceOrientation: (UIInterfaceOrientation)fromInterfaceOrientation { if (!didInitialSetup) { // once, at startup: set up interface didInitialSetup = YES; [self setUpInterface]; } } That way I don't create the nested interface until the main view has settled down into its initial rotation. Otherwise, if I do things too soon, x and y are reversed and everything is wonky after that. This trick has really helped me with autorotation, though I don't know if it will be useful in your case. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#applescriptthings ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
iPhone orientation problems
Hi all I've read a lot of articles on the subject but still could not figure out how to solve my issue. I have a multiview iPhone application. One of those views is a Navigation view of course controlled by a Navigation controller. The other view is a full screen image view, which is also the start screen of the application. I have declared a custom controller, the ViewSwitcherController wich controls what view is displayed and it also contains a view, the graphic one. So, ViewSwitcherController has graphic view. The NavigationController has the navigator view. Both controllers are in the same nib files (there are many issues if you want to use a navigation controller in a seperate nib file). My problem is when I rotate my device. I've overridden the shouldAutorotateToInterfaceOrientation method and had it return YES all the time. The current view always get rotated, no matter which one is active but if I switch back to the next view after rotating, the next one, again no matter which one it is, appears on screen in the wrong orientation, even though the status bar, so I suppose the main windows, is shown in the right orientation. How can I solve this issue? Any idea? Everywhere, it is said that it should be handled automatically when adding the subview to the window but it doesn't seem to work, at least not with my controller layout. thx for any help. Eric. smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iPhone Orientation
no longer a violation of the NDA provided you're discussing publicly released software, as the new NDA states; as far as I understand it. You may or may not have better luck over the iPhone dev forums, there's a couple of great people over there who are very good at answering the iPhone oddity questions but not the wealth of experience in cocoa you find here. One of the powerful things about cocoa touch (IMO) is that it's really just like the rest of cocoa and there's a lot to be gained from asking questions here and just reading the posts. The design patterns are the same, a lot of the workhorse classes are the same and the display classes do share some similarities. I would recommend, if you haven't done so, reading all the tutorials about UIViewController, 'your first iPhone app' etc. I've read them a couple of times now and just having a passing familiarity with the concepts and terms means I can search quite efficiently and find things. The documentation is I think mostly extremely good; for instance had you just typed 'orientation' into the search box with 'API' and one or other of the iPhone doc sets highlighted .. you would have have UIViewController and UIApplicationDelegate methods to dig in to and probably answered your own question. When you are reading documentation I would also suggest only having the iPhone doc set selected .. I have gone down the path of trying to use what looked like a great piece of cocoa only to find ... it wasn't going to work on the device. On Dec 9, 2008, at 11:16 AM, Bruce Martin wrote: Thanks for the answers. I was told that it was a violation of the NDA: Until an announcement is made otherwise, developers should be aware that the iPhone SDK is still under non-disclosure (section 5.3 of the iPhone Development Agreement). It can't be discussed here, or anywhere publicly. This includes other mailing lists, forums, and also blogs. Violating the NDA will result in WWDR being notified of the breach. Further action is at their (and legal's) discretion. / I was confused because Apple had stated recently: On October 1st, Apple decided to remove the non-disclosure agreement (NDA) for released iPhone software. The updated iPhone SDK agreement is posted on the iPhone Dev Center.View now So until the confusion can be resolved I will not continue this, but I thank you all for any answers you have given so far. Bruce Martin The Martin Solution [EMAIL PROTECTED] http://www.martinsolution.com http://externals.martinsolution.com On Dec 8, 2008, at 10:51 AM, Dave DeLong wrote: UIViewController has methods that are called to notify that the iPhone will, is, or has rotated: - (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation - (void)willRotateToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientationduration: (NSTimeInterval)duration - (void)willAnimateFirstHalfOfRotationToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientation duration: (NSTimeInterval)duration - (void)willAnimateSecondHalfOfRotationFromInterfaceOrientation: (UIInterfaceOrientation)fromInterfaceOrientation duration: (NSTimeInterval)duration - (void)didRotateFromInterfaceOrientation: (UIInterfaceOrientation)fromInterfaceOrientation All you would need to do is implement any of those in your ViewController to rearrange your interface appropriately. You can call [self setVew:someNewUIView] in a method, or whatever. Cheers, Dave On Dec 6, 2008, at 10:19 AM, Bruce Martin wrote: I'm not sure this is the right list but a search in the Archives returned no results for this question so that makes this question a simple one, or maybe no one else has had an issue with it. I am trying to get notifications that the orientation of the iPhone has changed, if it changed then I want to change the view to a new view which will contain different information than the original upright view. I tried looking for some examples or tutorials but can't find anything so the more basic your answer the better :) Thanks Bruce Martin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/bmartin%40mac.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
iPhone Orientation
I'm not sure this is the right list but a search in the Archives returned no results for this question so that makes this question a simple one, or maybe no one else has had an issue with it. I am trying to get notifications that the orientation of the iPhone has changed, if it changed then I want to change the view to a new view which will contain different information than the original upright view. I tried looking for some examples or tutorials but can't find anything so the more basic your answer the better :) Thanks Bruce Martin The Martin Solution [EMAIL PROTECTED] http://www.martinsolution.com http://externals.martinsolution.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: iPhone Orientation
UIViewController has methods that are called to notify that the iPhone will, is, or has rotated: - (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation - (void)willRotateToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientationduration: (NSTimeInterval)duration - (void)willAnimateFirstHalfOfRotationToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientation duration: (NSTimeInterval)duration - (void)willAnimateSecondHalfOfRotationFromInterfaceOrientation: (UIInterfaceOrientation)fromInterfaceOrientation duration: (NSTimeInterval)duration - (void)didRotateFromInterfaceOrientation: (UIInterfaceOrientation)fromInterfaceOrientation All you would need to do is implement any of those in your ViewController to rearrange your interface appropriately. You can call [self setVew:someNewUIView] in a method, or whatever. Cheers, Dave On Dec 6, 2008, at 10:19 AM, Bruce Martin wrote: I'm not sure this is the right list but a search in the Archives returned no results for this question so that makes this question a simple one, or maybe no one else has had an issue with it. I am trying to get notifications that the orientation of the iPhone has changed, if it changed then I want to change the view to a new view which will contain different information than the original upright view. I tried looking for some examples or tutorials but can't find anything so the more basic your answer the better :) Thanks Bruce Martin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: iPhone Orientation
The UIKit changes orientation for you if you respond YES to shouldAutoRotateToOrientation which is part of UIViewController. Luke Sent from my iPhone. On Dec 6, 2008, at 9:19 AM, Bruce Martin [EMAIL PROTECTED] wrote: I'm not sure this is the right list but a search in the Archives returned no results for this question so that makes this question a simple one, or maybe no one else has had an issue with it. I am trying to get notifications that the orientation of the iPhone has changed, if it changed then I want to change the view to a new view which will contain different information than the original upright view. I tried looking for some examples or tutorials but can't find anything so the more basic your answer the better :) Thanks Bruce Martin The Martin Solution [EMAIL PROTECTED] http://www.martinsolution.com http://externals.martinsolution.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: iPhone Orientation
have you looked at UIViewController at all? That's the generally recommended (in the documentation) way of controlling views and has all the methods required for telling you when orientations change, allowing you to say you do or do not want an orientation change and poking your view when it happens. I've used this quite successfully in my applications generally for controlling views and for the few I have which are orientation-aware, it's fine. On Dec 7, 2008, at 1:19 AM, Bruce Martin wrote: I'm not sure this is the right list but a search in the Archives returned no results for this question so that makes this question a simple one, or maybe no one else has had an issue with it. I am trying to get notifications that the orientation of the iPhone has changed, if it changed then I want to change the view to a new view which will contain different information than the original upright view. I tried looking for some examples or tutorials but can't find anything so the more basic your answer the better :) Thanks Bruce Martin The Martin Solution [EMAIL PROTECTED] http://www.martinsolution.com http://externals.martinsolution.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: iPhone Orientation
On Sat, Dec 6, 2008 at 12:19 PM, Bruce Martin [EMAIL PROTECTED] wrote: I'm not sure this is the right list but a search in the Archives returned no results for this question so that makes this question a simple one, or maybe no one else has had an issue with it. The best place for detailed discussion (officially, anyway) is the iPhone Developer Center: http://developer.apple.com/iphone/ Registration, a US$100 fee, and a signed NDA are required. Apple's way of limiting public release of information which they feel works. :-) There's also all the documentation that you should probably read (since this is a pretty basic function that should be easily found with a search of the documentation) ... Unofficially, most iPhone-related discussions seem to be allowed on this list but the official rules of this aren't yet entirely clear. -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: iPhone Orientation
On Dec 8, 2008, at 9:58 AM, I. Savant wrote: On Sat, Dec 6, 2008 at 12:19 PM, Bruce Martin [EMAIL PROTECTED] wrote: I'm not sure this is the right list but a search in the Archives returned no results for this question so that makes this question a simple one, or maybe no one else has had an issue with it. The best place for detailed discussion (officially, anyway) is the iPhone Developer Center: http://developer.apple.com/iphone/ Registration, a US$100 fee, and a signed NDA are required. Apple's way of limiting public release of information which they feel works. :-) There's also all the documentation that you should probably read (since this is a pretty basic function that should be easily found with a search of the documentation) ... Not to mention the existing sample code from Apple. Anyhow, there's other reasons for Apple moving towards an on-line discussion forum format. E-mail lists did not address many of the developer's needs. Unofficially, most iPhone-related discussions seem to be allowed on this list but the official rules of this aren't yet entirely clear. The boundaries sometimes do blur. For example, the recent thread about responding to low-memory situations. While clearly only an iPhone OS issue, it did raise many best practices that would work in general. My personal take... Any FoundationKit or fundamental types of questions should be OK on this list. However, specific UIKit-related stuff should go elsewhere. This is nothing new. For example, developers often need to step down to direct quartz APIs and often the best forum for help is the dedicated quartz-dev list. I thus view UIKit as being a very specialized area and thus deserves a more dedicated forum. For my personal iPhone OS needs, I've gotten all answers by (a) reading docs, (b) working through Apple's sample code, (c) attending the iPhone tech talk and (d) contacting DTS** when all else failed. ** You'll get two DTS incidents in the iPhone standard account (i.e. you don't have to use up the ones in your Select/Premier account should you have those as well). ___ Ricky A. Sharp mailto:[EMAIL PROTECTED] Instant Interactive(tm) http://www.instantinteractive.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: iPhone Orientation
Thanks for the answers. I was told that it was a violation of the NDA: Until an announcement is made otherwise, developers should be aware that the iPhone SDK is still under non-disclosure (section 5.3 of the iPhone Development Agreement). It can't be discussed here, or anywhere publicly. This includes other mailing lists, forums, and also blogs. Violating the NDA will result in WWDR being notified of the breach. Further action is at their (and legal's) discretion. / I was confused because Apple had stated recently: On October 1st, Apple decided to remove the non-disclosure agreement (NDA) for released iPhone software. The updated iPhone SDK agreement is posted on the iPhone Dev Center.View now So until the confusion can be resolved I will not continue this, but I thank you all for any answers you have given so far. Bruce Martin The Martin Solution [EMAIL PROTECTED] http://www.martinsolution.com http://externals.martinsolution.com On Dec 8, 2008, at 10:51 AM, Dave DeLong wrote: UIViewController has methods that are called to notify that the iPhone will, is, or has rotated: - (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation - (void)willRotateToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientationduration: (NSTimeInterval)duration - (void)willAnimateFirstHalfOfRotationToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientation duration: (NSTimeInterval)duration - (void)willAnimateSecondHalfOfRotationFromInterfaceOrientation: (UIInterfaceOrientation)fromInterfaceOrientation duration: (NSTimeInterval)duration - (void)didRotateFromInterfaceOrientation: (UIInterfaceOrientation)fromInterfaceOrientation All you would need to do is implement any of those in your ViewController to rearrange your interface appropriately. You can call [self setVew:someNewUIView] in a method, or whatever. Cheers, Dave On Dec 6, 2008, at 10:19 AM, Bruce Martin wrote: I'm not sure this is the right list but a search in the Archives returned no results for this question so that makes this question a simple one, or maybe no one else has had an issue with it. I am trying to get notifications that the orientation of the iPhone has changed, if it changed then I want to change the view to a new view which will contain different information than the original upright view. I tried looking for some examples or tutorials but can't find anything so the more basic your answer the better :) Thanks Bruce Martin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/bmartin%40mac.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]