ios - Make a public var equal to private string -


i want public variable equal string inside method generated call made

here func use make call tempstring

func handlesnapshotresult(snapshot: dictionary<string, string>) -> void {     let tempstring : string = snapshot["temperature"]!     println("temperature: " + tempstring) } 

i want use tempstring inside of uicollectionview cell, how make public variable set collectionviewcell.label.text = temp string

btw im new swift

you can put call create , set text of cell. when response call set text

collectionviewcell.label.text = "your_response_text" 

you can skip function call.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -