UIView Constraint not working on iPhone 3.5

I am animating a constraint on an iOS7 app. On the iPhone 4" screen it works, but the same code on an iPhone 3.5" does not work. Both are running iOS7. I have no clue why it works on one size phone but not the other?

-(void)showBottomRequestView {

[self.view layoutIfNeeded]; // Ensures that all pending layout operations have been completed

[UIView animateWithDuration:0.5 delay:0.3 options:(UIViewAnimationCurveEaseOut) animations:^{

    self.qBottomConstraint.constant = 65; <-- this UIView only works on  4.0"
    self.meBottomConstraint.constant = 65; <-- this UIButton works on 3.5" and 4.0"

    [self.view layoutIfNeeded];

} completion:^(BOOL finished) {



One possible reason could that UIView constraint value is already what you are trying to animate it to ... You can place it within 3.5" area of the screen for both 4" and 3.5" sizes and see if it works correctly for both sizes.

Probably not the best way, but I added another constraint and did an if/else.

  do 3.5 constraint

  do 4.0 constraint

Need Your Help

JaCoCo and Aspectj

java maven aspectj jacoco

I've bean using JaCoCo in a maven multimodule project and want to add some AspectJ magic and I'm getting the following error during test run

Setting the Wallpaper from an Image on the SDCard

android sd-card

How would one go about setting the homescreen wallpaper from an image on the SDcard?