IPhone SDK - scrollToRowAtIndexPath crashes if table is not loaded yet

I have a case where i have to scroll the UITableView to a particular row and section. When i tried this the application crashes when the table is not yet done loading.
Is there a way to find out if the table view is done loading?
I did not see any delegate methods which address this.
I would appreciate for any pointers on how to handle this scenario.
Thanks,
-TRS

Found a solution.
I reload the table before i ask it to scroll to a position.
- (void) setOrdinal:(jint) topItem {
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:topItem inSection:0];
[tableView reloadData];
[tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:NO];
The setOrdinal method is called by the user of the view containing the table.
This works just fine.
Thanks to all who took time to read this post.
-TRS

Similar Messages

  • I'm running iCloud on a Windows 7 PC. Photoes have been autmatically uploaded from my iPhone. However, the "Photoes" ICON does not load, and I receive an error message of a problem. Then the ICON disappears. How can I access my photoes?

    I'm running iCloud on a Windows 7 PC. Photoes have been autmatically uploaded from my iPhone. However, the "Photoes" ICON does not load, and I receive an error message of a problem. Then the ICON disappears. How can I access my photoes?

    Same issue here,  previously did work perfectly

  • I tried to restore my iphone to factory settings but it will not load. In itunes it says "veryfing iphone software" what can i do?

    I tried to restore my iPhone to factory settings but it will not load anymore, it stopped at about 60% and in itunes it says "veryifing iphone settings" but will not load anymore, what do i do?

    Put the iPhone in DFU mode*. Connect in iTunes and restore.
    *Use Google.

  • Select Insert into staging table does not load varchar2

    I have a select insert query that loads a prebuilt table. I am running this query through Heterogenous services which points to a MySql database.
    If I run just a select query in SQL PLUS then it returns all rows just fine.
    However, when I put the select insert into a stored procedure, compile it, then run it. It does not load any VARCHAR2 datatypes but it does load DATE and NUMBER datatypes.
    I also have another table with VARCHAR2 and it loads fine.
    How can the database only load some of the items in a row and not others (VARCHAR2)
    For instance, the query will load TRANSACTION_ID, ORER_NUMBER but will not load any data into BILLFIRST_NAME, and their is data to load.
    CREATE TABLE "TRAN_STG"
    (     "TRANSACTION_ID" NUMBER(11,0),
         "ORDER_NUMBER" NUMBER(20,0),
         "BILL_FIRST_NAME" VARCHAR2(100 BYTE),
    Any suggestions would be appreciated.

    can it be that there are differences in characterset? Can it be that there are differences in datatypes? Can it be that there are differences in field length?

  • Crash at Startup / preferences not loaded

    Hi there,
    Been having this problem for a week now. Logic's been crashing at startup a lot. Some time though, Logic starts up normally except for an error message at startup saying that the preferences are not loaded completely and advising me not to save them as it would overwrite the current preferences with incomplete data. When it manages to start up (I normally need to try 3/4 times before it happens), after I click OK on the preferences message, I can use Logic normally...
    Has anybody ever encountered such a problem?
    Thanks a lot for your help

    upgrade to 10.3.9 or the best is 10.4.2 if there is nothing stopping you
    and also go as much as you can on rams because you are abit low on rams , say 1.5gb
    what version of logic? the latest is 7.1.1 and it works better with 10.4.2
    if you don't have that then the free update is 7.0.1 and also you need pro app support 3.1
    Osx 10.3.9
    http://www.apple.com/support/downloads/macosxcombinedupdate1039.html
    Security update
    http://www.apple.com/support/downloads/securityupdate2005008macosx1039.html
    Logic 7.0.1
    http://www.apple.com/support/downloads/logicproupdate.html
    Pro app support 3.1
    http://www.apple.com/support/downloads/proapplicationsupport31macosx1039.html
    then repair permission after then restart the mac
    also make sure your 3rd parties passes the AU test
    stash

  • Recent Safari problems - YouTube crashing (Flash?), Gmail not loading, freezing, etc.

    Two days after the new retina MBP was released, my Safari (latest version, running on the latest MBP with Lion) started acting up.
    Crashing when trying to watch/load/pause a YouTube video — it simply cannot do it. I have an SSD drive, mind you...
    Gmail often doesn't load, but stalls when the loading bar is 95% done.
    Websites often freeze when I am browsing, scrolling, and so on.
    Very frustrating! I have been forced to use Chrome for watching YouTube videos instead.

    Hi ..
    Crashing when trying to watch/load/pause a YouTube video — it simply cannot do it. I have an SSD drive, mind you...
    Gmail often doesn't load, but stalls when the loading bar is 95% done.
    Websites often freeze when I am browsing, scrolling, and so on.
    For YouTube. Try troubleshooting the Flash plugin which is required for most YouTub content.
    Quit Safari.
    Open System Preferences > Flash Player then select the Storage tab. Click: Delete All
    Now uninstall the Flash plugin then reinstall new >  Troubleshoot Flash Player | Mac OS
    Very important to uninstall the currently installed Flash plugin first.
    Relaunch Safari From your Safari menu bar click Safari > Empty Cache
    Now try a video.
    BTW... if you have the ClickToFlash extension installed, that can prevent Flash based video from streaming. It can also be installed as a plugin in /Library/Internet-Plug-Ins.
    And check to see if Safari is running in 32 bit mode. Right or control click the Safari icon in your Applications folder then click Get Info. If the box next to:  Open in 32 bit mode  is selected, deselect, quit then relaunch Safari.
    As for Gmail. From your Safari menu bar to of your screen click Safari > Preferences then select the Privacy tab. Click:  Remove All Website Data. Quit then relaunch Safari. Try accessing Gmail.
    For sites freezing, try deleting the cache associated with Safari. Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type this exactly as you see it here:   ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go
    Move the Cache.db file to the Trash. Test Safari.

  • Oracle dll will not load yet again

    Again, I am getting an exception: "Could not load file or assembly 'Oracle.DataAccess, Version=2.112.1.1"
    I am still using Windows Server 2008 64 bit. The Oracle dll is in the GAC. I am using the client successfully in other applications. I posted on this problem before concerning an ASP project, and got it working. This time it is with a WCF project. I have tried changing the configuration to x86, but it still will not load.
    What to do?
    Could not load file or assembly 'Oracle.DataAccess, Version=2.112.1.1, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Server stack trace:
    at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
    at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at IMusicData.GetSongsByAuthor(String author)
    at MusicDataClient.GetSongsByAuthor(String author)
    Edited by: brekehan on Jun 1, 2010 12:42 AM

    Hi,
    This looks like a known Microsoft issue with WCF. You can review the following Thread for the Microsoft response.
    http://connect.microsoft.com/VisualStudio/feedback/details/349510/vs2008-incorrectly-launches-x64-version-of-wcfsvchost-for-x86-debugging
    One workaround you can consider is to use the utility coreflag on WcfSvcHost.exe and change it to run as 32-bit.
    If you google search on WcfSvcHost.exe and x86, you will find additional information from other developers and Microsoft on this topic.
    HTH
    Jenny

  • IPhone SDK: runtime crash pushing viewController onto navigationController

    Hi,
    I have looked at this for hours but am completely stuck, any help would be much appreciated.
    I have the following code which pushes a viewController onto a navigationController:
    Scr1ViewController *scr1ViewController = [[[[Scr1ViewController alloc]]
    initWithNibName:@"Scr1ViewController" bundle:nil] autorelease];
    [self.navigationController pushViewController:scr1ViewController
    animated:YES];
    When nibNameOrNil is set to 'nil' the program runs fine and loads a blank view, so I'm guessing that the code is ok. But then when I set nibNameOrNil to the nib name the program crashes at runtime. This leads me to think that it must be a problem with my nib file.
    The debugger log shows '-[UIViewController loadView] loaded the "Scr1ViewController" nib but no view was set.'
    However, when creating the nib I have followed these steps in the Interface Builder Guide exactly, paying attention to every detail and checking repeatedly.
    1. Create a new nib file using the Cocoa Touch View template.
    2. Add a view controller object to the top level of the nib file.
    3. Set the class of the view controller to your custom class.
    4. Drag a navigation item from the library and drop it onto the view controller object.
    5. In the Interface Builder document window, drag the view that came with the template and drop it on the view controller to associate it with the controller.
    6. Double-click the view controller object to open its editor window.
    7. Set the title of the navigation item to the default title for this navigation level.
    8. Open the view and add any additional subviews to it to define your user interface (no additional subviews).
    9. Save the nib file.
    Are there any steps that the guide has missed out, I just can't seem to get it to work, I have created the nib from scratch again and again.
    Thanks in advance.

    Hi,
    when creating a nib-file for the viewcontroller you do not need to add a viewcontroller to the top level. You create the viewController-object in your code so why creating another one in the nib-file?
    Set the class of the file's owner to your viewcontroller-subclass.
    Add a view to the toplevel and connect the file's ower view outlet to the view.
    Add a navigationItem to the topLevel and connect that too.

  • IPhone SDK: How to have application files not be backed up by iTunes?

    We are writing a set of files to the tmp directory on the device, with the expectation that iTunes will not back it up. However, we are seeing that those files are backed up on the host computer.
    The following documentation:
    http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhone OSProgrammingGuide/ApplicationEnvironment/chapter6_section3.html
    says:
    "tmp/ — The application writes any other temporary files here. The application is responsible for cleaning up all files created in this directory; there is no automatic cleanup mechanism. Backup operations ignore the contents of this directory."
    A sample value returned by NSTemporaryDirectory() is:
    /private/var/mobile/Applications/65BED698-7789-41A0-A9BC-06BBDC5EB654/tmp
    For which we are saving our files in:
    /private/var/mobile/Applications/65BED698-7789-41A0-A9BC-06BBDC5EB654/tmp/NSData /080702c
    However, when the device is disconnected and reconnected to the computer, and iTunes does a backup, we can see the files from tmp being transferred to a backup directory, eg.:
    ~/Library/Application Support/MobileSync/Backup/fb0a4b743a3c826d3146e0e34a9aa16e3c11eb0c
    Our questions are:
    1. Is the documentation correct about tmp not being backed up?
    2. Are we getting the path to tmp correctly?
    3. Is there something we can do or set to get tmp to not be backed up?
    4. Is there another directory we should be using for data files which need to persist between application launches but not be backed up?
    5. We have noticed that the path returned by NSTemporaryDirectory() is not the same as that formed by adding "tmp" to the path returned by NSHomeDirectory(); the former is /private/var/mobile/Applications/.../tmp while the latter is /var/mobile/Applications/.../tmp. Yet writing files to either seems to put them in the same place - are symbolic or other links being used to make these paths refer to the same directory? Which one should developers use?
    Thanks in advance for any suggestions and help.

    Partly to bump this but also to restate the question in less detail we a) want to save a number of text files for our app to use as a cache when it's relaunched, and b) don't want those files to be backed up by itunes when the iphone/touch is synced with the computer. How to do that?
    We thought the "tmp" directory within our application's sandbox would be the place for that, however, itunes is backing up the files we put there.
    Any ideas or suggestions much appreciated.
    Thanks.

  • Pls someone help me out. my iphone 4 just crashed .. it does not even charge nor start???

    i downloaded this new app swann veiw pro in the morning and now when i accessed the app in the evening ... after 30mins or so my phone just crashed and would not start. i thought it be be the battery but it is not even charging. pls help someone

    A quick search here did the trick and I think I am back in business.  My battery was fully charged, I knew that was not the issue, so I held down the Power button and the Home button for 15 seconds and the phone reset and rebooted.  All seems well now.  I thought it had to be a software glitch, but had forgotten the two button reset protocol.
    All seems fine now!!  WHew!!

  • Safari crashing! YouTube videos not loading! Message and email not loading! HELP!!!

    So a week or so after the newest update came out for the iPod touch 4 (IOS 5.1.1) my safari stoped working along with YouTube and email. When I tap on the safari app, it shows the search bar and just a blank open page from anywhere from less then a second to ten seconds then it suddenly crashes. This happens every time I try to open safari. What Happens with YouTube: I open YouTube and it will let me serch for a video to watch then when I click on a video to watch it just says it is loading and won't stop. If tested it and it will keep loading and won't stop. What happens with message and email: basically they just won't load any new messages  and won't let me send any either. Every other application that runs off wifi works just not those four. I've been connected to wifi and it won't work. If went to other wifi and it won't work. I've tried everything and it still won't work. Please help me! I really need it! :)

    Try the standard fixes:
    - Reset. Nothing was lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory settings/new iPod.

  • Iphone 6 ordered on 9/15 but not shipped yet

    I ordered an iphone 6 16gb silver on 9/15 through a phone order with verizon my ship date has been 10/3 since I ordered. I was fine with waiting for my phone to ship but it is now the ship day and I have not seen any indication of shipment. I tracked my order and nothing has changed since I ordered. I've also called verizon several times and no one ca give me any answer why it hasn't shipped. I was charged for the phone (2 yr upgrade) on the day I ordered, so a little over $200. I am a little frustrated that I already paid for the phone and my ship date is now here and I do not have any additional information. Ihave been fairly patient up until this point but I would really like more of an answer than the Verizon rep checking a status I can check myself without any extra insight. With over 10 calls and countless wasted time in the past three days I am at my breaking point. I'm thinking of calling this a bait and switch situation by Verizon. I want to know what is going on!!!!!!

        Hi Fashionny03,
    My apologies to hear that your device has not meet the deliver by date. I have sent you a direct message for account review.
    Thanks,
    PamelaF_VZW
    Tweet us @vzwsupport

  • Songs purchased through iTunes on iPhone 4 get download error and will not load.  Account has been charged for the purchase.

    I purchased an album through iTunes on my iPhone 4, and my PayPal account has been charged for the entire album.  However, all but 2 songs would download to my phone.  The other 2 have a download error.  Any suggestions on how to fix the error, or to get a refund for the songs that I can't get?

    I purchased an album through iTunes on my iPhone 4, and my PayPal account has been charged for the entire album.  However, all but 2 songs would download to my phone.  The other 2 have a download error.  Any suggestions on how to fix the error, or to get a refund for the songs that I can't get?

  • IPhone 4 running iOS 4.0.1 not loading images

    Right so I've been an iPhone owner since the original iPhone and this is the first time I'm having this problem. It started the day I switched from iOS 4.0 to iOS 4.0.1, my iPhone 4 is taking extremely long to load images, if it does at all. It's only even loading images about 50% of the time... maybe less. My phone is saying I have full bars on 3G and I'm in an area I've always had full bars. Also, I do have a bumper on my iPhone so I don't think it's related to the antenna gripping thing.
    Anyone else having this problem, or know what's causing it?
    Thanks

    I've tried restarting, resetting, and restoring unfortunately nothing seems to work. The problem actually seems to be just getting worse. I took my friends iPhone 3G running 3.x and my old iPhone 3G running 4.0 connected as an unlocked go-phone my iPhone 4 running 4.0.1 was the slowest. The friends on 3.x (I can't remember what update of 3.0 it was running) came in first followed by my old 3G on 4.0 came in second. As an example of how bad this is getting, my iPhone 4 took 4min 30sec to open this page!!! It stayed stuck on a blank white with the blue line slowly filling in the URL bar. This *****!!! It says I've got either full (five bars) of 3G or minus one (four bars). I've given up on YouTube, after about 30mins the phone quits and just says the server stopped responding. It seems to be software related as it only started when I moved to 4.0.1 (I have tried restoring and prior to setting the phone up from a backup I've tried just using it, and there is no change in the problem).
    I would take it into an apple store but I live on an island without one. I'd have to buy a boat (or plane) ticket, rent a car, and drive 3hrs to one!
    I wish I could just go back to my old iPhone 3G running 3.0!!!!!

  • IPhone 4S shows max strength connection but not loading mail or finding Safari pages

    My iPhone is the exception.  We have an iPad and an iPad mini and both connect from the same room to the same router as the iPhone and the iPads work faultlessly.  The iPhone shows a full 5 bars connection strength but nothing is coming to it from the internet.   The timer whirls around but, eventually, mail, Safari and all other internet apps just time out.
    I've tried resetting the network by "forgetting" then re-connecting with a new entry of the password.   I've tried shutting down the iPhone and re-starting.   Nothing seems to have any effect.
    Help please?

    Oh dear, wrong community!  I can't find a community for iPhone problems?

Maybe you are looking for

  • Getting problem in the code

    Hi experts, kindly check the following code. when i click the first radio button it should take that date..When i click the seconde radio botton the data should come from the range of the dates. I have done this and not able to get proper data. ( rad

  • Iphone won't turn on past apple logo, can't restore. HELP

    All of a sudden tonight, my iphone 4s restarted, but it only got to the apple logo screen, then restarted again.  It was doing that repeatedly every 10 seconds or so for the last few hours.  The only thing I could do was turn it off completely but on

  • Include Control ?

    Hi Everbody, I would like to include control. Example ; Include this code will not work unless it runs.     CHECK it_data IS not INITIAL.    PERFORM excel_data_trasfer USING: it_header it_data. I want to check these include and content. INCLUDE ole2i

  • IBooks Author/Templates

    Library/Application Support/iBooks Author/Templates is not on my computer? Even using "go to folder" it returns negative??

  • HOW CAN I BLUR OUT A SPOT ON MY PROJECT

    I WANT TO LEARN HOW TO BLUR OUT a licence plate or someone face from the project I shot a few days ago. Tony