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

  • Home
  • SEARCH
  • 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 6551659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:21:54+00:00 2026-05-25T12:21:54+00:00

I am trying to do something pretty basic here. I am using a block-based

  • 0

I am trying to do something pretty basic here. I am using a block-based UIView animation to bring the subview that is currently off the screen to the current view’s center. Obviously the sp.view.frame = self.view.center line is the issue here. In the end, how do I do what I want?

[UIView animateWithDuration:1 delay:0
                    options:UIViewAnimationOptionCurveLinear
                 animations:^{
    sp.view.frame = self.view.center;        
}

Thanks!

  • 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-25T12:21:54+00:00Added an answer on May 25, 2026 at 12:21 pm

    First, sp.view.frame returns a CGRect whereas self.view.center returns a CGPoint. The two are not the same type and so one cannot be set to the other. ASssuming you wish to set the center of sp.view to be the center of self.view, you can do that in one of two ways:

    sp.view.center = self.view.center;
    

    or

    [sp.view setCenter:self.view.center];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to do something pretty basic here. I just want to make the
I know I am probably missing something pretty basic here, but I am trying
I'm getting something pretty strange going on when trying to read some data using
I'm trying to do very basic, custom animation with JavaScript. I'm using a library
I'm pretty new to c#, and i'm trying to understand something pretty basic. I
I am trying to do something with Entity Framework that I think is pretty
I'm trying to get something very subtle to work, it looks pretty awful right
Is it possible to set for(AssociatedControlID) attribute using jQuery? I am trying something like
I'm very new to Android programming, so this is probably something pretty basic. I
Trying to get a basic understanding of T-SQL here in SQL Server 2008. Suppose

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.