ios - Swift lastobject equivalent -


what swifts equivalent to

[[view.subviews] lastobject] 

ive tried

view.subviews.lastobject 

but not function exists in swift

it exist, think has been renamed (they've done lot of things in swift); try:

view.subviews.last 

Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

ruby - How do I merge two hashes into a hash of arrays? -