Uitable view reloads 2x times OR view is pushed 2 times

Hi!
I am not really sure whats happening.
Either my UITableView is reloading 2x, or the pushViewController is fired 2x times.
If I am pushing the view, it appears, but is pushed again and loads the rest..
any hints?
I did also remove all [view reloadData] commands..
my tableView is loading the data (XML Feed) in the viewDidLoad method.
if I am loading the data before pushing the tableView (therefore not within viewDidLoad), the table stays empty.

Hi Alex -
Methods like viewDidLoad, viewWillAppear and viewDidAppear can be called more than once during the same view transition, though in my experience the first is much less likely to repeat than the other two. In these cases, I sometimes use boolean instance vars to lock out any code that should only run once. E.g.:
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
if (!self.didAppear++) {
// init data and/or reload table view
NSLog(@"viewDidAppear");
- (void)viewDidDisappear:(BOOL)animated {
[super viewDidDisappear:animated];
self.didAppear = NO;
I'm not claiming this example is thread safe, though I'd only expect calls to come from the main thread. You might declare the boolean to be atomic if you tend to lose sleep over this type of question.
On the other hand, pushViewController will only run twice if your code calls it twice. I can't guess how you're managing to do this. For instance, didSelectRowAtIndexPath is pretty good about not repeating. So if you're seeing an extra, unintended push transition, it's fairly safe to assume something's wrong with your code. Logging can be a big help in a case like this. E.g.:
NSArray *stack = self.navigationController.viewControllers;
// place this before and after each call to push or pop ViewController:
NSLog(@"stack = %@", stack);
If the above doesn't provide any clues, we might be able to help more if you posted any transition-related code (e.g. for the controller calling push and the controller being pushed).
- Ray

Similar Messages

  • Lost all photos on my iPhoto and get the ERROR WRITING TO DISK when trying to reload from Time Machine. iPhoto cannot import your photos because there was a problem writing to the volume containing your iPHOTO LIBRARY  . Looking for solution.

    Lost all photos on my iPhoto and get the ERROR WRITING TO DISK when trying to reload from Time Machine. iPhoto cannot import your photos because there was a problem writing to the volume containing your iPHOTO LIBRARY  . Looking for solution.

    Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore will not, in itself, solve your problem.
    First, empty the Trash, if possible.
    Triple-click anywhere in the line below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) 2>&- | wc -l | pbcopy
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign ($) to appear.
    The output of the command will be a number. It's automatically copied to the Clipboard. Please paste it into a reply.
    The Terminal window doesn't show the output. Please don't copy anything from there.

  • Getting "the procedure entry point CGImageRelease could not be located in the dynamic link library CoreGraphics.dll" error when starting Itunes. Haved reloaded many times and still the error.

    Getting "the procedure entry point CGImageRelease could not be located in the dynamic link library CoreGraphics.dll" error when starting Itunes. Haved reloaded many times and still the error.

    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair".
    Does iTunes launch properly now?
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post:
    Re: I recently updated to vista service pack 2 and I updated to itunes

  • Video Thumbnails reloads every time I move playhead...

    Impossible to work with video thumbnails in sequence, cause I have to wait for all thumbnails to reload every time I move the playhead or swap windows. Anybody had a simular problem, and a solution?

    Hi Rolf,
    Rolf-Ørjan Høgset wrote:
    Impossible to work with video thumbnails in sequence, cause I have to wait for all thumbnails to reload every time I move the playhead or swap windows. Anybody had a simular problem, and a solution?
    Yes, I have heard of that with certain Mac OS X 10.9 and OS X 10.10 installations. Is that what you have? No current solution but please file a bug report and I'll look into it more deeply when I get back to the office on Monday.
    I've advised others to turn off thumbnails if it is really slowing down your workflow.
    Thanks,
    Kevin

  • How do I stop apps from reloading every time I unlock my iPhone?

    How do I stop apps from reloading every time I unlock my iPhone? I have an iPhone 4 and at least 95% of the time I unlock it, some apps act as though they are reinstalling. It only lasts for about 3 seconds if that but it makes me feel like something is wrong with it. Does anyone else have this problem??

    jamiekat wrote:
    some apps act as though they are reinstalling.
    Could you explain what you mean by this? What is happening that makes you think they're reinstalling?

  • I have copied my music library from two different files from extewrnal hard drive into the Itunes folder. I tunes only recognizes some of the songs. I have reloaded 5 times and can't get intunes to recognize all my songs? HELP!

    I have copied my music library from two different files from extewrnal hard drive into the Itunes folder. I tunes only recognizes some of the songs. I have reloaded 5 times and can't get intunes to recognize all my songs? HELP!

    " When I did this, my library showed all the music I have "purchased" from itunes but did not have the music that I downloaded a long time ago through itunes from my old CDs."
    Correct.
    " How can I get that music to show up in my library now on my new computer?  "
    Copy it from your old computer or your backup copy of your old computer.
    The sync is one way - computer to ipod.

  • Details Navigation iview reloaded every time.

    Details Navigation iview reloaded every time i click any link inside it. I just want Content Area to be reloaded but not Details Navigation.

    Hi
    Try changing the embedded property to false for the Details Navigation iView and check.
    Regards
    Padmaja

  • Two tabs reload every time Firefox 3.6.2 starts, even if they were previously closed

    Starting today, I have two tabs that reload every time Firefox is started. I've tried clearing the history, closing the tabs and restarting, and simply rebooting the system. Upgrading Firefox is not an option, as the newer versions don't work properly with some of the websites I frequent.
    As it worked fine until today, and the copy on my USB drive still works fine, I assume it's a setting wrong. I'd copy the USB version over to my PC, but then I'd have to reset all of my bookmarks.
    Thank you.

    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved
    It is also possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the files sessionstore.js [2] and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js

  • How can I make Firefox check for the newest update of a website automatically instead of having to reload every time I go to it?

    IE Explorer has the option to check for newest version of a web page every time it is visited. With Firefox it seems I have to hit reload every time I go to an often visited web page. Is there a setting I am missing somewhere to fix this?

    # Type ''about:config'' into the location bar and press enter
    # Accept the warning message, this brigs up a list of preferences
    # In the filter box type ''check''
    # Double-click on the preference browser.cache.check_doc_frequency and change its value to 1
    For more details on this preference see http://kb.mozillazine.org/Browser.cache.check_doc_frequency

  • Images are not showing in uitable view .

    When running the app on simulator the images are comming well in table view , but no images are showing during in iPad Device and also showing no error .
    I debuged the app ane the pointer is going to
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath , and the image is set to image view of tableviewcell , but still showing no image in iPad . but working fine in simulator .
    Please help me .
    Thanks

    99 times out of 99, when images show on the sim but not on the device, it is due to the fact....that's right...fact...that the sim is your computer and file names when code-consumed ignore case.
    iOS on the other hand, and this is important, so take notes....is case-sensitive.
    MyImage0666.PNG in the Finder...your project folder....is not the same as myImage0666.png

  • Viewer builder / Push certificates failure

    hello DPS community,
    I'm facing a quite bothering issue with the viewer builder : I'm unable to load my push certificates (both development and prod).
    Following the guidelines of the Adobe Production Guide, here's what I do :
    1 - generate a CSR certificate
    2 - generate the Devopment certificate and the p12 file
    3 - generate the Production certificate and the p12 file
    4 - generate the Push notification APS Production certificate and the APN Production p12 certificate
    5 - generate the Push notification APS Development certificate and the APN Development p12 certificate
    6 - generate the Development Mobileprovision certificate
    7 - generate the Distribution Mobileprovision certificate
    My three questions are :
    > should I generate a CSR certificate for each and every step of the procedure ?
    > is the order of the procedure correct ?
    > is there a specific name under which the certificates have to be saved, in order to be correctly recognized by the viewer builder ?
    I've scouting through the pages of the forum, and have seen this issue has been raised quite a few times... but couldn't find an answer !
    Any help welcome !
    (I'm running CS6 on Mac OS 10.7.4)
    Regards,
    Laurent, Polka Magazine

    It says (in french, roughly translated) :
    Tag "Apple Production IOS Push Services:" or "Apple Production IOS Push Services:" expected not found in that certificate
    and
    Tag "Apple Development IOS Push Services:" or "Apple Development IOS Push Services:" expected not found in that certificate
    (screenshot in french)

  • Multitasking on iPod Touch 4G, running iOS 6.1.2, nearly impossible. Opened,  background apps do not seem to stay in memory and must "reload" every time I switch back to them. Also, intense battery drain (imo).

    Let's say I'm playing Words with Friends, and also Angry Birds. I may want to go back and forth between the two. When I do so, the app that was in the background needs to reload again. There is no quick access or ability to quickly resume where I left off. And the reloading means that the app restarts from its opening screens...so if I was working on a level, I have to start all over again. And quite often, a game like Angry Birds will lag greatly when I first open it...moving almost in slow-motion.
    I don't know if this is typical behavior when playing multiple games, or if I have an issue with my device. I've rebooted and even reset and restored, all to no avail.
    There doesn't appear to be as much of an issue if I'm playing one game but also have the music player open, or Safari, Notes, Reminders, etc. Those will resume just fine, though there may be some lag when opening/re-opening them.
    So I guess the problem seems to lie within 3rd party apps, and not the apps that are part of the iPod/iOS.
    The other problem is battery drain. I do all of my music listening via Bluetooth, so I expect that to have a greater impact than if I were using plugged in headphones, and I have location services turned on. But I have most notifications turned off, all email accounts set to manual and not push, screen brightness turned down and auto brightness turned on, "ask to join networks" turned off, auto-lock is set to 2 minutes but I almost always turn off the screen immediately after setting up my music listening (since I do so at work), volume limit turned on, EQ turned off, sound check turned off,
    With these settings, my battery can drain 20% or more within 10-15 minutes of game play. And these are not what I would consider memory intensive games--just Words and Angry Birds.
    I've installed (and recently uninstalled) a couple of battery meters from the Apple Store as well--freebies. Carat, Battery Doctor, Battery HD, Battery Magic.
    Carat and Battery Doctor seemed to offer the most pertinent and accurate information so the others were uninstalled long ago.
    The Accelerate tab in Battery Doctor show the amount of memory in use, and the amount of available memory. The vast majority of the time, the memory in use is approximately 94%. I will occasionally choose to "accelerate" which supposedly frees up memory, but this "bump" lasts only a brief time and I'm not sure it's a great idea.
    Even with absolutely nothing open or running, my used memory is generally still above 80%.
    Carat, if anyone is familiar with it, shows a J-Score. My J-Score is 17, which means that my performance (according to Carat, anyway) is better than only 17% of the users who have Carat installed. In other words, 83% of people are getting better performance from their devices. It also has "battery hog" and "battery bug" sections. It doesn't detect any hogs or bugs.
    I use my iPod Touch in rather limited ways. A typical day consists of approximately 5 hours of music listening via Bluetooth and 30 minutes to 1 hour of playing the aforementioned games. The occasional note and reminder, perhaps a brief check-in with the weather, and that's about it. And wifi is in use only when at home (there is no hotspot at work). Still, I need to charge it every day. I'd be keen to do more with the iPod if I could count on it to last more than a day.
    I've read up on multiple forums and blogs for tips on prolonging a battery charge, and believe I've taken everything into account, and applied whatever I could. I've even reset the network settings and try to discharge the battery completely once a month (for supposed battery calibration).
    I'm really hoping people can offer some suggestions or comments on whether this is typical behavior or if my battery is going, or even offer some additional tips.
    With iOS 7 on the horizon, I'm hoping the upgrade will offer some resolutions (I've read there is better multitasking), but considering how weakly my device performs at this point, I'm not entirely convinced that an iOS upgrade will actually make any improvements.
    Thanks a lot for reading.

    No, the app does not have to completely restart. It gets shifted in its open state into storage. Similar to how a computer uses the hard disk when it has insufficient memory.
    What complicates things is that sometimes memory does not get returned for reuse when you close an app. Thus yo should periodically double click the Home button and "delete" unnecessary apps from the multitasking dock and power off and then back on the iPod.

  • Since loading Itunes update my Itunes takes about 3 to 4 minutes to load and then when it loads it freezes for about 3 minutes and then unfreezes. This happens with every restart. I've have deleted and reload four times but still get the same  results. t

    Question: I've have upadated to the latest Itunes software but since doing so I've have had nothing but problems and yes
    I have unloaded and reloaded at least 4 times. Now when I try to open Itunes using the short cut on the desk top it takes about 4 minutes or longer for the Itunes to start and then it freezes for about another 2 to 3 mintues and then starts. This happen everytime I try to open Itunes now. I even deleted Itunes from my hard drive and put it on my SSD to see if it would work and still nothing. I've always been pretty good at sloving my problems. But this one has me stumped. Is there anyone who as had this problem that would be willing to help me out. Router25. P.S. It only happen with this one application of software. Everything else loads up fast. This comput is about 1-1/2 years old. Most people would love to have this computer. 9 out of 10.  Please help me someone. I ready have a grey beard and it getting grayer.

    Restore from backup.  If the issue continues, restore as new.

  • All itunes data gone...can I reload from Time Machine and external HD

    Okay, so maybe I was the stupid one and deleted all of my ITunes library....don't yell, I just wanted to free up some HD space...
    Fortunately I use Time Machine and an external HD to back everything up..can I reload my Itunes library from Time Machine and the external HD..can anyone walk me through the process?

    docutale1 wrote:
    Hi there,
    I've done some searching and i haven't been able to find the answer to this problem. I am wondering if someone can help me with this.
    My HD was faulty so i had it replaced.  my complete 300gb music library was backed up on an external HD. The iTunes program was running on my local HD. So i ran the local iTunes off of my ext. HD.
    Now that i have a new HD and i restored everything from Time Machine,
    Did you restore the entire disk from Time Machine?
    Boot from your System install DVD then Restore from backup and select the Time Machine drive?
    See this -> http://web.me.com/pondini/Time_Machine/14.html

  • Error 5 on Start up (Windows Error 7) - why and how do I overcome it? Have removed and reloaded several times and also tried repairing, but to no avail.

    I am experiencing Error 5 on Start up (Windows Error 7) - why and how do I overcome it?  I have removed iTunes and reloaded it several times and also tried repairing, but to no avail.

    apandua2105
    To properly uninstall iTunes for Windows see this link:
    http://support.apple.com/kb/HT1923
    After redownload iTunes from Apple and reinstall:
    http://www.apple.com/itunes/download/

Maybe you are looking for

  • Error Installing BOE in SUSE 10

    Hi All, My problem is following, please help me: I installed the BOE successfully. I can log in and run the reports that did not base on SAP. But when I installed the Integration Kit for SAP(IK). there is some error. it is alway failed when schedulin

  • Help with Lossless files

    Hi there i wondered if someone could help me! If i purchase an album direct from Itunes how do i get it to become a lossless file? I have import as lossless set when inserting a CD but i wanted the best possible quality when purchasing from Itunes as

  • Can't plot from Leopard to an HP Designjet 500, shared by a Winxp machine

    Hello, I hope somebody can help me with this issue. I have a plotter, an HP Designjet 500, plugged into a winxp machine(via usb), and a new iMac 20" alu. They're in the same smb network: the imac can print to the inkjet printers (HP) plugged into the

  • Lightroom Adjustment Brush Use for windows

    In Using the adjustment brush with exposure mode active I get a light red/pink color over the area the brush is used, this is not the mask that shows up when the curser is put over the pin. I also can not not make real time adjustment but when I clic

  • Why did my motorola s9-hd stop working with my iPhone 3gs?

    Why did my motorola s9-hd stop working with my iPhone 3gs? I can't even be a foot away from my iPhone before my bluetooth headset losses signal. It wasn't like that before. What changed and how can it be fixed?