Ricevo questo errore nel mio codice che dice "Crea un breakpoint simbolico a UICollectionViewFlowLayoutBreakForInvalidSizes
per catturarlo nel debugger". Sono confuso su quello che in realtà sta chiedendo qui è il codice in cui sto pensando che chiede di essere messo in non so dove?Crea un punto di interruzione simbolico a UICollectionViewFlowLayoutBreakForInvalidSizes
import UIKit
// MARK: - CUSTOM SOCIAL CELL
class SocialCell:UICollectionViewCell {
/* Views */
@IBOutlet weak var socialIcon: UIImageView!
@IBOutlet weak var socialLabel: UILabel!
}
class SocialList: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout {
/* Views */
@IBOutlet weak var socialCollView: UICollectionView!
override func viewDidLoad() {
super.viewDidLoad()
}
// MARK: - COLLECTION VIEW DELEGATES
func numberOfSectionsInCollectionView(collectionView: UICollectionView) -> Int {
return 1
}
func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return socials.count //socialNames.count
}
func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCellWithReuseIdentifier("SocialCell", forIndexPath: indexPath) as! SocialCell
cell.socialLabel.text = "\(socials[indexPath.row]["name"]!)"
cell.socialIcon.image = UIImage(named: "\(socials[indexPath.row]["name"]!)")
return cell
}
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
return CGSizeMake(view.frame.size.width/3.8, view.frame.size.width/3.8)
}
func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
selectedSocial = "\(socials[indexPath.row]["link"]!)"
selectedName = "\(socials[indexPath.row]["name"]!)"
selectedColor = socialColors[indexPath.row]
navigationController?.popViewControllerAnimated(true)
}
}
Ok perfetto così ho fatto e ha eseguito di nuovo l'applicazione caricando la pagina di Facebook ma quando faccio clic per aggiungere una foto, la pagina viene aggiornata e lo ha appena estratto in Xcode: –
UIKit'UICollectionViewFlowLayoutBreakForInvalidSizes: -> 0x1123ebabc <+0>: pushq% rbp 0x1123ebabd <+1>: movq% RSP,% rbp 0x1123ebac0 <+4>: TestQ% RDI,% RDI 0x1123ebac3 <+7>: je 0x1123ebac7; <+11> 0x1123ebac5 <+9>: popq% rbp 0x1123ebac6 <+10>: RETQ 0x1123ebac7 <+11>: leaq 0x4a1042 (% rip),% RDI; @ "' '" 0x1123ebace <+18>: XORL% eax,% eax 0x1123ebad0 <+20>: popq% rbp 0x1123ebad1 <+21>: JMP 0x1125b3e90; simbolo stub per: NSLog –
@ThreeSuitStudiosLLC hai capito come dare un senso alle maniglie della memoria? – Jobs