Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

The right-aligned subviews of the prescription list table cells need to have their layout adjusted when the table is put into edit mode, either through overriding layoutSubviews() or putting in the rendering of that subview directly in the tableView:cellForRowAtIndexPath: method.

Activity

Hide
Gavin McKenzie added a comment -

The solution will likely be to override layoutSubviews() with code that does a setFrame on the right subview. Possibly listen for UITableViewCell's didTransitionToState:state callback which will inform the cell when it is about to transition into/out-of edit mode.

Also see:
http://stackoverflow.com/questions/742829/animating-custom-drawn-uitableviewcell-when-entering-edit-mode

Show
Gavin McKenzie added a comment - The solution will likely be to override layoutSubviews() with code that does a setFrame on the right subview. Possibly listen for UITableViewCell's didTransitionToState:state callback which will inform the cell when it is about to transition into/out-of edit mode. Also see: http://stackoverflow.com/questions/742829/animating-custom-drawn-uitableviewcell-when-entering-edit-mode
Hide
Gavin McKenzie added a comment -

Solution was simply to use constraint based layout.

Show
Gavin McKenzie added a comment - Solution was simply to use constraint based layout.

People

  • Assignee:
    Gavin McKenzie
    Reporter:
    Gavin McKenzie
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: