Moving content of UITableViewCell on tap


If anyone have <strong>Google+ App</strong> can certainly understand what I'm trying to implement. <br />(<em>explained here:</em> <a href="https://stackoverflow.com/questions/16989516/uiviewcontroller-containment-with-animation-like-google" rel="nofollow">UIViewController Containment with animation like Google+</a>)

I think it has something related with the new effect in <strong>iOS 7 Calendar App.</strong><br />(<em>explained here:</em> <a href="https://stackoverflow.com/questions/19323061/recreating-ios-7-calendar-uiview-animation" rel="nofollow">Recreating iOS 7 Calendar UIView Animation</a>)


This is a common animation effect that I'm seeing in many apps these days.

Months ago, the fellow <strong>Rob</strong> tried to help me with this <a href="https://stackoverflow.com/a/16994333/719127" rel="nofollow">his answer</a>:

Now I was trying to implement it but there's a problem. Images explains better:

<br /><strong><em>INITIAL STATE</em></strong>

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/yj6fM.png" data-original="https://i.stack.imgur.com/yj6fM.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /><strong><em>WHAT HAPPEN WITH CURRENT IMPLEMENTATION</em></strong>

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/4ITBX.png" data-original="https://i.stack.imgur.com/4ITBX.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /><strong><em>WHAT SHOULD HAPPEN</em></strong>

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/zPe0C.png" data-original="https://i.stack.imgur.com/zPe0C.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

I've created a super simple project that shows the implementation (few lines).

Can someone help me to find where's the problem?

<strong>REPO</strong>: <a href="https://github.com/socksz/MovingTableViewCellContent" rel="nofollow">https://github.com/socksz/MovingTableViewCellContent</a>


The problem is that you're trying to change the view's frame with Auto Layout on. You can't do that. The Auto Layout system will overwrite your changes. Try turning off Auto Layout in your storyboard and you'll see that it works.

So your options are:

<ol><li>Don't use Auto Layout</li> <li>Use/manipulate constraints instead of frames.</li> </ol>

For (2) you can just go into the storyboard and set up width and height constraints on the container view and it will work. If fixed size isn't the exact behavior you want, you'll need to be more explicit in your requirements.

The default constraints you're getting now are attached to the parent view and aren't getting carried along for the ride when you move the view to a new parent.


  • Refresh chat box when new msg received
  • How to calculate Last Week of Month by WeekNO and Year in SQL
  • EF EDM Builder Oracle Number(1, 0) -> Int16/Bool
  • Python timer script doesn't run when set to long periods later
  • Retrieve Windows Update history using WUAPILib from a remote machine
  • R mlogit on my data giving error 'system is computationally singular?
  • Sliding transition animation between Screens in Caliburn Micro
  • The symbol you provided is not a function
  • SqlCommand back up Database
  • C# List of Panels
  • blade.php method outputting it's result to the form
  • How to make R's read_csv2() recognise the text characters properly
  • xcode don't localize specific strings
  • Make new pandas columns based on pipe-delimited column with possible repeats
  • How to get current document uri in XSLT?
  • Select options in sencha touch is not working for android
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • WPF ICommand CanExecute(): RaiseCanExecuteChanged() or automatic handling via DispatchTimer?
  • ViewController With Transparent Background Entering Current ViewController With Push Transition
  • Remove final comma from string in vb.net
  • onBackPressed() not being executed
  • Refering to the class itself from within a class mehod in Objective C
  • Syntax for setting draggablecursor property in google maps api
  • CSS Linear-gradient formatting issue accross different browsers
  • Javascript Callbacks with Object constructor
  • How to model a transition system with SPIN
  • To display the title for the current loaction in map in iphone
  • ORA-29908: missing primary invocation for ancillary operator
  • GridView Sorting works once only
  • Invalid access key error using credentials redeemed from an amazon open id token
  • Arrays break string types in Julia
  • PHP: When would you need the self:: keyword?
  • How to get icons for entities from eclipse?
  • WPF Applying a trigger on binding failure
  • Acquiring multiple attributes from .xml file in c#
  • -fvisibility=hidden not passed by compiler for Debug builds
  • Java static initializers and reflection
  • reshape alternating columns in less time and using less memory
  • Converting MP3 duration time
  • How can I use threading to 'tick' a timer to be accessed by other threads?