Search Results

Search found 28 results on 2 pages for 'typeoneerror'.

Page 2/2 | < Previous Page | 1 2 

  • UITableViewCell height with 0 rows

    - by Typeoneerror
    I've got a moderately uncustomized UITableView in my application that presents an array of up to 6 peers for a networking game. When no peers are found the numberOfRowsInSection is 0, so when it loads up, there's no rows in the table: - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 0; } Trouble is, the height of each cell is not adjusted to match heightForRowAtIndexPath unless the numberOfRowsInSection is 0. I hard-coded in "1" for this and the height is adjusted. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return kTableRowHeight; } Can anyone tell me why this is? Will once the data that is being presented is longer than "0" length, will the height of the table cells jump to the correct height? I'd like them to be the correct height even if the row length is 0.

    Read the article

  • Facebook Connect - logout issue

    - by Gublooo
    Hello I think I'm missing a very silly detail but the logout funtion of facebook connect is not working for me. I followed the steps posted in this answer by Typeoneerror but I cant get it to work. This is my logout javascript function function logout() { FB.init("API_KEY", "/xd_receiver.htm"); FB.Connect.logoutAndRedirect("/logout/url"); } When I click on it - nothing happens - In the browser status bar - For a second I see a message which says waiting for facebook - but I continue to stay on the same page. It does not redirect me nor does it log me out of facebook either. Just to see if the function is being called - I removed FB.init call from the function and then I get the error Error Message: 'FB.Connect' is null or not an object Any suggestions on how to debug this. Thanks a lot

    Read the article

< Previous Page | 1 2