Xcode 6.3 '[AnyObject]?' 「Generator」という名前のメンバーがありません
この行からのエラー「for object2 in objects2{」
let findImage:PFQuery = PFQuery(className: "_User")
findImage.whereKey("objectId", containedIn: self.userlist as [AnyObject])
findImage.findObjectsInBackgroundWithBlock{
(objects2:[AnyObject]?, error2:NSError?)->Void in
//var recordProfileImg:NSMutableArray = NSMutableArray()
if !(error2 != nil){
for object2 in objects2{
println(objects2.count)
let sweet:PFObject = object2 as PFObject
if sweet.objectForKey("profileImage") != nil{
var recordProfileImg:NSMutableArray = [sweet.objectId,sweet.objectForKey("profileImage") as PFFile]
self.userImageList.addObject(recordProfileImg)
// println(userImageList)
}
}
}
}