[iphone beta 6] rotating with a navigation controller

ok... this started happening in beta 6.
i have a navigation controller. when i rotate the device to landscape, the view that it is on only gets half the screen vertically, when i rotate it back to portrait, the view only gets half horizontally.
i have had many problems with rotating the device in the past, so it is likely that one of my workarounds i implemented then has not come back to bite me.
manually setting the top view's frame with:
navController.topViewController.view.frame = [self getScreenRect];
does nothing
any ideas?
john
Message was edited by: johne-dm

just some debugging ideas.
skip the nav controller and just have that top controller as the current view controller. see if you get the same behavior. then you know that it's not the nav controller.
check the autoresizemask property of the top view controller's view. it should be set to expand vertically/horizontally as necessary.
something that's helped me in the past is to set different backgroundColors for all view controller views.

Similar Messages

  • IPhone Dev: Tab Bar Controller with nested Navigation Controller

    I want to have a tab bar with 2 views. The first view is a navigational one. I know the view can be loaded in from an external nib and I can set the first view to a navigation controller.
    My question is: can this navigation controller in the external nib instead? Ideally I want to separate it out so the tab bar loads in the external nib (that has the navigation controller). Is this possible? or the only approach is to simply have to set the view controller to a navigation controller?

    Hey, this writing an app that uses the Tab View Controller in conjunction with Navigation View Controllers is driving me bats. I took a sample program which worked well, added a nib file for a basic view that only had a label on it then:
    * I created a view controller class to work with it.
    * I added code to add create a navigation controller.
    * Added my new view controller to the navigation controller
    * added this nav controller to the array with the other stuff for the tab view controller.
    * RUN
    Everything seems to work as far as all the existing stuff. And the title for my new "tab" shows up on the More tab.
    But when I click on it (in the simulator) the program crashes. It could be how I set up the nib file I made is wrong.
    I posted the code on my web site. Here is the URL:
    http://chomer.com/iphonesample_code/05a_-_Brightness_ToolbarSwatches.zip
    Please have a look. Its probably something small and stupid that I missed.
    Regards,
    Orville

  • [iPhone Beta 6] Problem with Interface Builder

    I cannot open xib files created using beta 5 after updating to beta 6. The IB just hangs. Also, I tried to create new xib file, but when I browser the library view to see the component, the IB also hangs. Is anyone having the same problem?
    ps: I uninstalled xcode and reinstalled it. No success.

    Am also having the same issue, even when launching IB3 without loading a file.
    I get a crash loading IBCocoaTouchTool....
    Process: IBCocoaTouchTool [27606]
    Path: /Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Interface Builder/Plug-ins/IBCocoaTouchPlugin.ibplugin/Contents/Resources/IBCocoaTouchToo l
    Identifier: IBCocoaTouchTool
    Version: ??? (???)
    Code Type: X86 (Native)
    Parent Process: Interface Builder [27605]
    Date/Time: 2008-05-30 21:16:08.342 +0930
    OS Version: Mac OS X 10.5.3 (9D34)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGSEGV)
    Exception Codes: KERNINVALIDADDRESS at 0x00000000c012530b
    Crashed Thread: 0
    Thread 0 Crashed:
    0 libobjc.A.dylib 0x96d9a6e8 objc_msgSend + 24
    1 UIKit 0x30be1423 -[UITable setOffset:] + 429
    2 UIKit 0x30bcd92e -[UIScrollerScrollAnimation setProgress:] + 166
    3 UIKit 0x30aca9c7 -[UIAnimator(Static) _advance:] + 289
    4 GraphicsServices 0x31699412 HeartbeatTimerCallback + 35
    5 com.apple.CoreFoundation 0x916fcb3e CFRunLoopRunSpecific + 4494
    6 com.apple.CoreFoundation 0x916fccf8 CFRunLoopRunInMode + 88
    7 com.apple.Foundation 0x911ba4a5 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
    8 IBCocoaTouchTool 0x0000284e 0x1000 + 6222
    9 IBCocoaTouchTool 0x00002f69 0x1000 + 8041
    10 IBCocoaTouchTool 0x000022b6 0x1000 + 4790

  • IPhone Navigation Controller Problem

    I started working on learning how to use the iPhone UINavigationController in my app, and so far I have a UIViewController subclass that I can create multiple instances of with a view from a .xib file and push onto the navigation controller stack. Everything works, including the back button, but the first pushed view controller doesn't have a back button, so once I push one view on, the first view is inaccessible. Every view controller from the third one on has the back button. Any idea why?

    Well, I finally solved it. Turns out I needed to give the root UIViewController a title, and all the back buttons appeared fine, with the "invisible" one gaining the title of the root controller. Interesting how the others appeared - I guess creating a UIViewController programatically without a title gives the back button pointing to it a default title of "Back".

  • [iPhone] - Add command to a navigation controller back button?

    I have a root navigation controller with a table view going to a normal view controller. The normal view controller plays a sound but I am wanting the sound to stop when the back button is pressed to go back to the root view. Currently, the sound will continue playing until it ends. Where do I put the code to stop the sound when the back button is pressed?
    Thanks!

    You could place it in the UIViewController delegate method - (void) viewWillDisappear:(BOOL)animated.

  • My Iphone 4s is bricked with the Ios 7 beta. all help would be appreciated

    My Iphone 4s is bricked with Ios 7 Beta. Any help would be appreciated

    Did you obtain the iOS7 through proper developer channels?  If not, you will not get much help here.

  • Multi layer table view/navigation controller hierarchy best practice

    Hi,
    I am new to iPad/iPhone development and wondering what the best practice for multiple layers of table views is? I understand the principle of a navigation controller providing the framework for moving up and down a list but have not yet quite got my head around if you should have one navigation controller for the whole tree or several navigation controllers.
    In my app I need to have the following:
    Main view -> window view showing some interactive elements (picker, buttons etc.)
    Setup view -> Hierarchy managed by nav controller/table views
    The setup view needs to manage the following hierarchy...
    - Level A:
    - Global app variables (one table view)
    - Level B Items (table view showing list of items at belonging to Level B)
    - Level B Item 1 (table view showing list of items at level C belonging to level B item 1)
    - Level C Item 1 (table view showing list of items at level D belonging to level C item 1)
    - Level D Item 1 (table view showing list of items at level E belonging to level D item 1)
    - Level E item (table view for properties of item at Level E)
    - Level D Item n
    - Level C Item n
    - Level B Item n
    Each level in this has some properties and then a list of child items.
    What would be the best way of structuring this? I would assume that creating a class that extends a view controller for each level is a given but what about the control of the navigation? Should this be handled by one navigation controller or one per level? I think I know the right answer but have not seen a neat way of implementing
    I think I am also best off having each level in it's own xib but, once again, am not 100% sure that this is the best design pattern.
    Many thanks in advance for any help/pointers!
    Cheers
    jez

    Hi Julian,
    I have struggled with the same questions you are addressing. On a previous project we tried to model based on packages, but during the course of the project we encountered some problems that grew overtime. The main problems were:
    1. It is hard to enforce rules on package assignments
    2. With multiple developers on the project and limited time we didn't have time to review package assignment
    3. Devopelers would click away warnings that an object was already part of another project and just continue
    4. After go-live the maintenance partner didn't care.
    So, my experience is is that it is a nice feature, but only from a high level design point of view. In real life it will get messy and above all, it doesn't add much value to the development. On my neew assignment we are just working with packages based on functional area and that works just fine.
    Roy

  • IPHone: orientation change problem, with statusbars enabled

    Hello Folks:
    I've run into a problem with the rotation with the latest iPHone OS/SDK (Beta 5). I've submitted a bug report, but I've included the simple description below in case anyone has already run into this and knows of a work around.
    Thanks,
    Dan Pronovost
    [email protected]
    Summary:
    - If you turn on status bars in your application and rotate to landscape view and back, subview (and controls) can at times end up with an incorrect top position (y).
    - This can be demonstrated with a small change to the "WhichWayIsUp" sample application.
    Steps to Reproduce:
    - Load the WhichWayIsUp application
    - Edit the info.plist resource. Uncheck the 'UiStatusBarHidden' option.
    - Edit the MainWindow.XIB.
    - Move the Crate up to near the top (not QUITE near the top... stop on the dotted line that IB displays that represents below the status bar).
    - Build and run the app in the simulator (occurs equally in on the device itself).
    - Confirm that the box is properly displayed at the top of the window below the status bar. Make sure it's not 'chopped off' the top part (i.e. truly just below the status bar and not underneath it a bit).
    - Rotate to landscape. Notice it is now down a few pixels from the status bar.
    - Rotate back to portrait. Notice the box is now down what appears to be a full status bar height in pixels (20).
    - Adding debug code and getting the frame from the 'didRotateFromInterfaceOrientation' method on the main view, you'll see that the origin.y value is sometimes 20, sometimes not, depending on how many rotations you complete (and, the center property for the view is off by 10 sometimes). Equally, adding debug code to get the bounds and transform shows nothing unusual.
    Expected Results:
    - The box should stay at the top of the screen always.
    Actual Results:
    - Box gets moved down, and stays down, about a status bar in height. Reseting the frame in code (or center) does not fix it either, oddly.
    Regression:
    - Only tested on iPHone 2.0 SDK, Beta 5 (latest). Happens in simulator and device.
    Notes:
    - All above.

    Thank you for the reply. I created a bug report: https://bugs.adobe.com/jira/browse/SDK-24493
    I hope its not too hard to fix, because I need it for a product desperately

  • Problem responding to view being popped from navigation controller

    I have a detail view controller which is pushed onto the application's navigation controller stack by a given parent controller. The user is able to select table values in the detail controller, which should update the parent controller when, and only when, the detail view is popped and the parent view is made visible again.
    Is there a way to do this? I couldn't see any appropriate methods in UIViewController which would be called when the child view is popped. I've tried to make the parent controller conform the UINavigationControllerDelegate protocol and provided an implementation for willShowViewController method, but this method doesn't seem to get called when the view is displayed.
    I'm not sure if I'm going about it the right way trying to implement the UINavigationControllerDelegate and there is a bug with my implementation, or there are better ways to go to implement this functionality, such as using a modal controller, etc.

    m_userName wrote:
    The user is able to select table values in the detail controller, which should update the parent controller when, and only when, the detail view is popped and the parent view is made visible again.
    I don't understand why you require the update to be made only when the detail controller is popped, since during the time the detail controller is on top of the stack, the controller underneath isn't visible. It's common practice to pass data to the previous controller any time before the top controller is popped. Note that there's only a short interval between the time the top controller is removed from the stack and the time it's deallocated (unless you've retained that controller elsewhere, which should be avoided for best memory management).
    That said, [viewDidDisappear:|http://developer.apple.com/library/ios/documentation/UIKit/R eference/UIViewControllerClass/Reference/Reference.html#//appleref/doc/uid/TP40006926-CH3-SW20] is called during that interval, so I think it would be a good choice for the requirement you described:
    - (void)viewDidDisappear:(BOOL)animated {
    [super viewDidDisappear:animated];
    if (self.navigationController == nil) {
    NSLog(@"%s: *POPPED* level=%d", _func_, level);
    // pass the data here
    The test for a nil navigationController pointer tells us whether the controller is actually off the stack when viewDidDisappear: runs. This is useful in case an instance of this controller class ever pushes another controller on top of it, since viewDidDisappear: will run in that situation as well. But in that case the controller doing the pushing remains on the stack, so its navigationController property won't be nil. If that property is nil when viewDidDisappear: runs, we know self has just been popped.
    You can also find the above example in [Problem with text in detailTextLabel of UITableViewCell |http://discussions.apple.com/message.jspa?messageID=12495708#12495708], so if you build the code in that thread you can see how things work together.
    - Ray

  • Has anyone been able to combine OpenGL ES with another View controller?

    Looking at all the sample code, I still can't find any example of combining OpenGL ES with another View controller. So that one could have a view that the user could input values, and another that draws OpenGL ES stuff in. Is this possible, or does one have to draw the UI stuff OpenGL? I haven't downloaded any iPhone Apps store stuff that uses any OpenGL drawing.
    Thanks for any suggestions....

    I have been able to add a second UIView to the app's window. And I set the bg color for the view to be transparent and I use the view for drawing quartz objects over the opengles scene. It's a little Heads Up UI that is not too hard to deal with. And it can blend better as an iphone app.
    You could easily add views and force them in size to be side by side, or top/bottom, whatever works.
    Have fun,
    ceder

  • IPhone 4 stop working with ios 6.1

    iPhone 4 stopped working with ios 6.1, visited apple first time, restored phone and worked, less than 24 hours later stopped working again, back to the store, I told iPhone is out of warranty and they'll replace for $150. iPhone worked fine with previous version, no problem at all. Asked to restore to the previous software version, told can't be done. Why should I pay for a damage caused by a software update. Tec claims that ios 6.1 will not work with my phone because it discovered some hardware malfunction, possible the home button. They can't repair. suggested to go to a third party. I'm a satisfied Apple product user for many years. What happened? Any welp out there?

    Hey.. I have had this issue since yesterday afternoon.. Some people are saying to keep restoring again and again until it finally goes through.. I have done so like 10 times on my MAC and then I used my husband's PC and tried it 4 times.. No success.. I called apple support, but no help came from there at the end, and the only thing they were able to suggest to me is to sell me a new phone just like mine for a discounted price.. **** NO
    Anyways after about 18h of search and stress I came across this link:
    http://techglobex.blogspot.com/2012/06/downgrade-from-ios-6-beta-firmware-to.htm l
    That will only make it possibe to go backward.. You will end up back with the IOS 5, but at least you will have a working phone and it will bring back all your contacts and everything else that you ever had backed up on icloud and on your computer. There might be descripencies with the Applications but again this is an issue easily solved, you can always download them back.
    Two more things: One, you do not have to download the old version of the itunes, the newest version worked for me without any issues
    When choosing to download the older IOS 5.1.1, you will need to figure out whether your carrier is GSM or CDMA but you can easily google this info online..
    Well hope that will work for you like it did for me

  • An iPhone can be synced with only one iTunes library at a time

    I recently bought a MacBook Pro, and I figured it would be pretty simple to move my iPhone to sync with iTunes on the Mac from iTunes on my pc, afterall it is the same program and both are designed for the iPhone.
    I have been successful in getting the Contacts and Calendar to sync, but the Music, Applications, Video and a few other things give me this message when I check the sync box:
    "The iPhone is synced with another iTunes library. Do you want to erase the iPhone and sync with this iTunes library? An iPhone can be synced with only one iTunes library at a time. Erasing and syncing replaces the contents of this iPhone with the contents of this iTunes library."
    Obviously, I don't want to erase everything. Actually, I don't care about Music, Videos, Podcasts or Ringtones as I don't have any, but I do care about Photos and Applications. Actually Photos I can reload too, but I don't want to loose the apps I have purchased with the iTunes App Store.
    I even tried going back to the PC and unchecking the Sync boxes on it, hoping this might disassociate it from the phone, but now even on that PC I get the same message.
    How do I disconnect phone from the old iTunes and be able to sync it to the new iTunes? This should be simple right?

    I made an appointment with a Mac Genius and I will say that while it was better than getting to talk to India on a poor quality phone call it was just about as helpful. Sure she was cute and friendly, but I left without my issue resolved and was surprised that I didn't even get a followup from anyone asking about my experience (hence my venting here)
    Anyway, I found a solution for my issue here: http://tinyfish.net/2008/07/18/how-to-sync-iphone-with-multiple-computers/
    This is a real solution to the issue, and has the benefit that I can do this to as many machines as I need and sync at any of them instead of just one. Hopefully, Apple doesn't delete my response since it truly is the answer to the problem and others might be looking for the same solution.

  • HT1386 iPhone won't sync with iTunes. It says iTunes can not add songs to iPhone because no songs in iTunes library can be copied to iPhone. Help!!!! What should I do

    iPhone won't sync with iTunes and It says iTunes can not add songs to iPhone because no songs in iTunes library can be copied to iPhone. Help!!!! What should I do. I tried everything!
    I need to add my music to my iPhone from iTunes but its not working!

    First off try and go into your IPhone manually through My Computer and cut photos or anything you can through the device to be able to free space up so that you can continue to do what you want to do with ITunes. This way you will be able to create a backup or do what you have to do to manage your information, photos and texts on your device a little better.

  • How much work is it to create a custom flash player with chapter navigation

    I am bidding on a job to do a simple instructional video that will be about 2 minutes in length.  The client wants me to put the video in a flash player that has some buttons on it that a user can click on to go to a specific step.  The instructions will have, for example, 10 steps, so they want to be enable the view to click on any one of the step numbers to jump to that point in the video.
    I did a google search for flash programmers who would quote me on how much they would charge me to create the flash player after I sent them an encoded video.  The only company that bothered to give me a quote said that it would be 5 to 7 thousand dollars for them to create a flash player with navigation for me.  I was thinking that this would be like a 2 or 3 hour job for someone who knows flash.  Is it really that time-consuming to create a flash player with chapter navigation?
    Am I starting to think that I am in the wrong business if you guys are getting $5k to $7k to set up a relatively simple player to put on a web page.
    I've got the Master collection but have never wanted to take the time to learn flash.  But if I could charge that much for jobs, maybe I better learn!

    I don't really know how to do this but I've seen some things that make me think it isn't that hard to do at all.
    You should be able to install "cue points" when you encode the video in the Media Encoder.
    I'm sure there's a very simple way to make links which would target those cue points.
    5k is absurd.

  • The internal workings implicitly popping from Navigation Controller

    I'm just curious to how a Navigation Controller is working when you pop out from a child view to a parent view. The reason I'm asking is because I have this kind of set up:
    App Delegate:
    Creates Nav Controller and inits it with a Root View
    Root View:
    Just some table view that allows to drill down a row to "Second View" lets call it
    When I push the second view into the Nav's stack, it'll automatically create a back button to pop. I am noticing when I hit back, it displays the Root View but the view event methods, i.e. viewWillAppear, are not called. Why is this?
    Since this is the case, what is the best way for me to reload the table view's data when I do a pop?

    Hey Ray,
    Sorry for all the confusion previously. I didn't have my personal computer at work so I wasn't able to copy/paste the exact code snippets but I can assure you that my print logs are working correctly. I actually have figured out what my issue was and I'll present to you (and anyone else who have run into a similar problem) what my problem was and what I did to solve it.
    First of all, let me address your previous questions. I am creating my Nav controller and the root view in the app delegate via the applicationDidFinishLaunching method. So something like this:
    myViewController *vc = [[myViewController alloc] initWithNibName@"myViewController" bundle:nil];
    myNavController = [[UINavigationController alloc] initWithRootViewController:myViewController];
    This was not the issue. The issue stems from the design of my app.
    The *root view controller* is actually a view that acts as a *container for two other view controllers*. One of them a *UITableViewController that controls a UITableView*, and the other is a *UIViewController that controls a MKMapView*.
    The UITableView has the ability to drill down into another table view, which invokes some actions that updates the list from the first view. This all works fine as I'm seeing in my logs.
    The problem was when I pop back to the root view I don't see the list updated; this pop back I'm referring to is the "Back" UIBarButtonItem that gets prefabbed for me when I push something to the Nav controller's stack. From my logs, the UITableViewController's inherited method, viewWillAppear is not being invoked, therefore, the [self.tableView reloadData]; that I placed in there is not being called.
    For some reason, a light bulb went on in my head today to investigate the container's view controller! *What I found out was only the container view controller's view event methods was getting called*; so all the viewWillAppear, viewDidAppear, etc... that I did not previously implement wasn't getting called and not appearing in the logs.
    So now, in the container's view controller's viewWillAppear, I call the UITableViewController's viewWillAppear, and my UITableView's list gets updated. So it's all working perfectly now.
    Thanks!

Maybe you are looking for

  • SAPCCM4X registration fails with exit code -1

    Hi all, While I am trying to register a remote system in solution Manager 4.0 using CCMS agent, we get this screen where it stops for asking the paswword to log on into the system, but even before we can enter the password, it exist with the error co

  • Can't send any emails from various accounts set up in mail 4.4

    I have a number of different email accounts (3 POP, 1 IMAP) set up in mail 4.4. Lately i have had some problems sending emails from some of the accounts. Usually, I get the outgoing mail server reject message, and then I try another server, and then

  • Map ID

    How do i create Map ID's? RoboHelp Report Possible Project Errors for RAAS HelpFile Created by lbeaulieu on 1/7/2008 1:01:21 PM Project Location: F:\Projects\RAAS Documentation\RAAS HelpFile\RAAS HelpFile.hpj Diagnostic Report Summary There are 62 to

  • Getting a lot of this error:The reason code is '4(802.1X Authentication failed 3 times.)'. - Controller Name:

    Since we upgraded our WCS system to V6.0.196.0 we are receiving a lot of the following error messages and I haven't figured out why. Client 'c0:cb:38:3f:a1:0d (anonymous, 0.0.0.0)' which was associated with interface '802.11a/n' of AP 'ACAA01-00.P04-

  • What happened to my Roboform tool bar? I'm pissed!

    When I installed v4, my Roboform tool bar shut down. I don't have all the passwords written down so this is a major problem for me. I got a screen that said there were several items that weren't compatible with v4 and they would be corrected as soon