MYSTERY ZILLION တွင် English သို့မဟုတ် Unicode ဖြင့်သာ အသုံးပြုခွင့်ရှိသည်။ ဇော်ဂျီ ၊ ဧရာ စသည်တို့ကို အသုံးပြုခွင့် မရှိ။ Unicode fonts များမှာ Mon3,Yunghkio, Myanamr3 စသည်များ အသုံးပြုနိုင်သည်။ Unicode Guide ကို ဒီမှာ Download ချပါ။ Zawgyi to Unicode Converter
Don't share ebook or software if nobody request. You can find free book websites on here. We are welcome for discussion or asking question instead.

Passing selected item to another view in CollectionViewCell

edited February 2016 in iOS Devlopment

I am using CollectionViewCell and trying to display data for selectedCell and having problems with passing data to another view. I am only using collectionViewCell with no table View. My code is sth like this.

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        if(segue.identifier == "segue_identifier"){
            // check for / catch all visible cell(s)
            for item in self.collectionView!.visibleCells() as [UICollectionViewCell] {
                let indexpath : NSIndexPath = self.collectionView.indexPathForCell(item as! CityCollectionCell)!
                let cell : CityCollectionCell = self.collectionView!.cellForItemAtIndexPath(indexpath) as! CityCollectionCell
                // Pass PFObject to second ViewController
                let theDestination = (segue.destinationViewController as! SelectedCityController)
                theDestination.trips = trips             //having errors in here cannot assign value of type
    func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
        self.performSegueWithIdentifier("showSelectedCity", sender: indexPath)

Here is my link if u are not clear about it. Thanks!!!


Sign In or Register to comment.