swift - self.image.frame.width = 20 give get only property error -
i tried change width of image view 20 @iboutlet weak var image: uiimageview!
using code in viewdidload self.image.frame.width = 20
give me error cannot assign property: width
property. mean?? sorry new swift not know mean.please
get-only means can read property (for example compare something), not change. set width need this:
self.image.frame.size.width = foo
Comments
Post a Comment