我想通過我的所有集合視圖單元快速枚舉,但是下面的這個實現給我一個警告。下面 for cell in self.collectionView?.visibleCells() as [UICollectionViewCell] {
// Do Stuff
}
錯誤出現在第一行: '?' 後綴的操作數應該有可選的類型;類型是 '(UICollectionView,cellForItem
鑑於這種代碼: NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for (NSHTTPCookie *cookie in cookieStorage.cookies) {
if (/* my specific condition that is true multip