Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7093415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:26:12+00:00 2026-05-28T08:26:12+00:00

Today I faced a strange problem. I have an application which is the same

  • 0

Today I faced a strange problem. I have an application which is the same for iPhone and iPad, it’s an universal app, however I made two main view controllers, one for iPhone and one for iPad. I made the iPhone version first… then I copied some of the code to the iPad version. Everything seems to work fine except my logo UIImageView. I have a logo which slides down from off screen to the center of navigation bar. Before the animation I set up the UIImageView to be off screen, so then it could slide down. But, even if I put any random value in the x and y of uiimageview frame, it is still at 0, 0. It’s the same code I have on iPhone and it’s working ok.

Here is my initialization.

    UIImage *logoText = [UIImage imageNamed:@"logotext.png"];
    [logoTextView setUserInteractionEnabled:YES];
    logoTextView = [[UIImageView alloc] init];
    // I already tried [[UIImageView alloc] initWithFrame:CGRectMake......];
    logoTextView.frame = CGRectMake(389, -100, logoText.size.width, logoText.size.height);
    logoTextView.image = logoText;
    logoTextView.center = CGPointMake(389, -100);
    logoTextView.alpha = 1;
    [logoTextView addGestureRecognizer:resetGesture];
   // [logoTextView setBackgroundColor:[UIColor whiteColor]];
    [self.view insertSubview:logoTextView atIndex:10];

This should actually position the UIImageView in the center and 100px off the screen. But nothing happens. It is still 0, 0. I tried it all ways I know, nothing really works…

Does somebody know, what to do? It would really help me. 🙂

EDIT

I have just found the solution… I don’t know why but this only works if its in a new method… weird.

- (void)logoShow {

    UITapGestureRecognizer *resetGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(resetValues)];

    UIImage *logoText = [UIImage imageNamed:@"logotext@2x.png"];
    logoTextView = [[UIImageView alloc] initWithFrame:CGRectMake(389, -50, logoText.size.width/1.35, logoText.size.height/1.35)];
    logoTextView.center = CGPointMake(389, -50);
    logoTextView.image = logoText;
    logoTextView.alpha = 1;
    [logoTextView addGestureRecognizer:resetGesture];
    [self.view insertSubview:logoTextView atIndex:15];


    // LOGO TEXT ANIMATION
    [UIView beginAnimations:@"Logo Text Animation" context:nil];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
    [UIView setAnimationDelay:4.5];
    [UIView setAnimationDuration:0.5];
    logoTextView.alpha = 1;
    logoTextView.center = CGPointMake(389, 22);
    [UIView commitAnimations];
    [logoTextView setUserInteractionEnabled:YES];
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:26:12+00:00Added an answer on May 28, 2026 at 8:26 am

    I would set the logo view as the title view of my view controller. In your -initWithNib (or similar) do this:

    logoTextView.alpha = 0.0f ;
    self.navigationItem.titleView = logoTextView ;
    

    Then in your -viewDidAppear: method do this:

    CALayer * layer = logoTextView.layer ;
    {
        CABasicAnimation * anim = [ CABasicAnimation animationWithKeyPath:@"transform" ] ;
        anim.fromValue = [ NSValue valueWithCATransfom3D:
                             CATransform3DMakeTranslate( 0, -100.0f, 0 ) ] ;
        [ layer addAnimation:anim forKey:nil ] ;
    }
    logoTextView.alpha = 1.0f ;
    

    Good luck

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i just faced a very strange problem today. My Application Structure is: /app -
Today I faced a strange problem in C#. I have an ASP.NET page where
Today we faced a quite simple problem that were made even simpler by the
Today I faced an error due to which my Android application is getting by
Today I faced a problem that there is one memory leak in my iphone
Today I have faced very strange behavior of sqlite3_finalize statement. I am using sqlite
I faced a problem today which has happened to me several times before. I
Today I stumbled about a Problem which seems to be a bug in the
Today I faced the following problem: I registered a new user on my Joobla
Today I decide to make a resolution which consist of testing my Java application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.