You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code basically loads dynamically an UILabel in the middle of the UIView respecting the relative font size and the padding of the view. This is the code I currently have:
This is not working correctly cause the label appears in the left-top corner of the view. I believe there is some round up in swift for not using the respondsToSelector() method but do not know how. I also want to avoid using sizeWithFont() cause it's _deprecated_.
Any help will be very welcomed!
The text was updated successfully, but these errors were encountered:
I am translating into
Swift
the followingObjective-C
block code which belongs to JBChartInformationView.m (at the demo project):This code basically loads dynamically an
UILabel
in the middle of theUIView
respecting the relative font size and the padding of the view. This is the code I currently have:This is not working correctly cause the label appears in the left-top corner of the view. I believe there is some round up in swift for not using the
respondsToSelector()
method but do not know how. I also want to avoid usingsizeWithFont()
cause it's _deprecated_.Any help will be very welcomed!
The text was updated successfully, but these errors were encountered: