AsgerLund macrumors newbie Original poster Jun 4, 2015 #1 I want to style my cell in tableView to show three variables. I have make a mockup to show the idea: But I'm having trouble aligning the right column. Can you show me an example on how to do it in Swift?
I want to style my cell in tableView to show three variables. I have make a mockup to show the idea: But I'm having trouble aligning the right column. Can you show me an example on how to do it in Swift?
KoolStar macrumors demi-god Jun 4, 2015 #2 Are you doing this via code? I would recommend it doing it via storyboard with a prototype cell and auto layout. You can create your layout that will handle the different length text in auto layout very easy.
Are you doing this via code? I would recommend it doing it via storyboard with a prototype cell and auto layout. You can create your layout that will handle the different length text in auto layout very easy.
1458279 Suspended Jun 4, 2015 #3 I don't know the method call but formatting the string should do the trick. Padding with zeros. Maybe this'll help: http://stackoverflow.com/questions/24051314/precision-string-format-specifier-in-swift
I don't know the method call but formatting the string should do the trick. Padding with zeros. Maybe this'll help: http://stackoverflow.com/questions/24051314/precision-string-format-specifier-in-swift