Top "Cgsize" questions

The data structure CGSize represents the dimensions of width and height.

iphone - how can i get the height and width of uiimage

From the URL Image in Mail I'm adding image to mail view. It will show full image. But I want …

ios uiimage cgsize
How to get device width and height?

In Objective-C we can get device width and height by using following code : CGRect sizeRect = [UIScreen mainScreen].applicationFrame float width = …

ios swift cocoa-touch uiscreen cgsize
CGSize sizeWithAttributes in Swift

In objective-C I was able to use: CGSize stringsize = [strLocalTelefone sizeWithAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14.0f]}]; But in Swift Language I …

ios swift cgsize
Proper usage of intrinsicContentSize and sizeThatFits: on UIView Subclass with autolayout

I'm asking this (somehow) simple question just to be finicky, because sometimes I'm worried about a misuse I might be …

ios objective-c uiview autolayout cgsize
How do I use cgsize make?

I have been trying to use cgsizemake as follows: I'm trying to make the frame of my image a different …

ios cgsize
how to set scrollview content size in swift 3.0

After updated Xcode8 not able to set contentSize for ScrollView. I can't able to use CGSizeMake. Can anyone help me? …

swift uiscrollview swift3 cgsize
Get the NSString height in iOS 7

I am using the below code to calculate the height of a label from string length. Im using xcode 5.0 and …

iphone ipad nsstring cgsize
iOS 7 gets me a different CGSize width and height

I have a problem on my app on iOS 7 I calculate my label size using: CGSize constraint = CGSizeMake(275, 141); CGSize size; …

ios objective-c uilabel ios7 cgsize
How set UIButton size by it's title size?

I have UIButton, which title is dynamic changes. Button size should changes with title size and will be equal title …

swift uibutton cgsize
Difference between frame.size.width and frame.width

I was writing a program in swift and just now I noticed that I can directly access a CGRect frame's …

ios swift xcode6 cgrect cgsize