func getCGSize(size:CGSize,fontSize:CGFloat,text:String)->CGSize{ let attributes = [NSFontAttributeName:UIFont.systemFontOfSize(fontSize)] let option = NSStringDrawingOptions.UsesLineFragmentOrigin let sizeMake = text.boundingRectWithSize(size, optio…