UITableView Scrolling

Discussion in 'iOS Programming' started by anemergencystop, Oct 22, 2008.

  1. anemergencystop macrumors newbie

    Joined:
    Oct 22, 2008
    #1
    Hello everyone,

    I'm having a weird problem where I can't scroll a UITableView if I press on a UITableViewCell that is inside it. If I press the "empty" parts of the table view, everything scrolls fine. Any ideas as to what might cause this behavior?

    Thanks!
     
  2. anemergencystop thread starter macrumors newbie

    Joined:
    Oct 22, 2008
    #2
    Solution was to set "allowsUserInteraction" to "NO".
     
  3. nacho4d macrumors newbie

    Joined:
    Jul 13, 2008
    #3
    2 suggestions

    1- Try "Clean All" button on Xcode before compiling you app.
    (It happens to me sometimes that my app behaves weird when after compiling too many times the same app)
    1- Any cell behavior should be debug by looking at

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

    method.

    try replacing your code by apple's sample code (just inside the obove method) and if you can scroll then something wrong is in your code.

    Cheers.

    Ignacio
     

Share This Page