{ "id": "162963", "key": "AC-4413", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-09-29T20:16:48.000+0000", "created": "2016-09-02T06:25:05.000+0000", "labels": [ "hyperloop", "ios" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-09-29T20:16:48.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15000", "name": "Hyperloop" } ], "description": "I'm facing a weird issue while using the code from the attached \"HL_CollectionView\".\r\nThe line number 40 is throwing a \"function not defined\" error. I'm just executing the command *setText* of UILabel, which is also executed in the line 44.\r\n\r\nFor some reason when i recover the UILabel from my *UICollectionViewCell* using the method *viewWithTag* it doesn't have the *setText* method available anymore, which makes using UICollectionViews kinda useless in this case...\r\n\r\nThe error is also attached.\r\n\r\n", "attachment": [ { "id": "60187", "filename": "HL_CollectionView.js", "author": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2016-09-02T06:15:03.000+0000", "size": 2977, "mimeType": "text/javascript" }, { "id": "60186", "filename": "UICollectionViewDelegate.js", "author": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2016-09-02T06:15:03.000+0000", "size": 1319, "mimeType": "text/javascript" }, { "id": "60185", "filename": "UICollectionView error.rtf", "author": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2016-09-02T06:24:37.000+0000", "size": 7700, "mimeType": "text/rtf" } ], "flagged": false, "summary": "Hyperloop iOS - Using \"ViewForTag\" returns an object without previously defined methods.", "creator": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "subtasks": [], "reporter": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "environment": "Hyperloop 1.2.6\r\nSDK 5.4.0.GA and up", "comment": { "comments": [ { "id": "395684", "author": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "body": "In my tests and before test this TAG tip in order to not duplicate views when cell are dequeue, I used :\r\n\r\n{code:java}\r\n\r\nvar nameLabel = UILabel.alloc().initWithFrame(CGRectMake(0, 0, 80, 40));\r\nnameLabel.text = data[indexPath.row].firstName;\r\n\r\ncell.contentView.addSubview(nameLabel);\r\n{code}\r\n\r\nIn order to not crash, not use the \"setText\" method and use the\" text\" property.\r\n\r\n{code:java}\r\nlabel.setText('foo')\r\n{code}\r\n\r\nby\r\n\r\n{code:java}\r\n label.text = 'foo' \r\n{code}\r\n\r\n works.", "updateAuthor": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2016-09-09T15:40:22.000+0000", "updated": "2016-09-09T15:40:22.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }