The blue line is the imageview's bounds.
UIImageView
's contentMode
is UIViewContentModeScaleAspectFit
,
And I want keep the original picture's scale.
How can I make the picture's left edge is on the UIImageView
's left edge?
But not like UIViewContentModeTopLeft
mode. Keep the scale and no blank in the left.
My english is not good, hope you guys could understand what I'm saying.
Thank you very much.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- How can I add media attachments to my push notific
Swift
Swift3
you can change your mode as
the moment i saw your situation,i thought about this:
and i tried it, but it makes things worse
so i think you may resize your imageView`s bound to fit the size you want with this code
then put your imageView align to left of the screen
just like this