[AC-4413] Hyperloop iOS - Using "ViewForTag" returns an object without previously defined methods.
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-09-29T20:16:48.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Hyperloop |
Labels | hyperloop, ios |
Reporter | Rodolfo Perottoni |
Assignee | Shak Hossain |
Created | 2016-09-02T06:25:05.000+0000 |
Updated | 2016-09-29T20:16:48.000+0000 |
Description
I'm facing a weird issue while using the code from the attached "HL_CollectionView".
The 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.
For 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...
The error is also attached.
Attachments
In my tests and before test this TAG tip in order to not duplicate views when cell are dequeue, I used :
In order to not crash, not use the "setText" method and use the" text" property.
by
works.