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 8656227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:13:38+00:00 2026-06-12T15:13:38+00:00

I am resizing a view with the setTransform method. Because i dont want the

  • 0

I am resizing a view with the setTransform method. Because i dont want the view to get too small, i got a check like this:

if(view.bounds.size.width > 100 && view.bounds.size.height > 100 && view.bounds.size.width < 300 && view.bounds.size.height < 300){
    //..resizing part
}

Now im confused. Normally i would transform my view with:

[view setTransform:scaleTransform];

But because im checking the view on its size i would suspect doing something like this:

CGAffineTransform scaleTransform = CGAffineTransformScale(view.transform, xScale, yScale);
CGRect newRect = CGRectApplyAffineTransform(view.frame, scaleTransform);
[view setBounds:newRect];

Is this correct or am i missing the link?

  • 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-06-12T15:13:39+00:00Added an answer on June 12, 2026 at 3:13 pm

    What i did to solve this:

    If the new frame is bigger than my provided bounds, dont translate.
    If its inside the provided bounds, set the new frame and translate.

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

Sidebar

Related Questions

I want to align my view to the right of my window, without resizing.
I am rotating the view and resizing and moving around UITextFields when this occurs.
Having an issue resizing the #main_wrap on: http://www.coffeeproteindrink.com/method-athlete/ #main_wrap { min-height: 100%; background: url(images/content_back.png)
I am resizing an small images (eg 20x25) to larger images (eg 150x170). My
( Correction : the view controllers are not auto-resizing instead of not auto-rotating.) In
The behavior I want to implement is to display a view at 1:1 scale
Basically, a UIView is automatically resizing when its parent view is resized - but
I'm having some problems resizing a UITabBarController as I only want it to take
I want to change my view size using user touch input. What I know
NEW EDIT: I have narrowed my problem to this - i have a view

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.