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

jpa - Passing entitymanager from reflection method -

frame rate - JAVA simple fps animation(how can i work with?) -