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? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -