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

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -