I think the problem is that Challenges is a NSManagedObject
class and you need the designated initializer:
initWithEntity:insertIntoManagedObjectContext:
instead of
Challenges *newChallenge = [[Challenges alloc] init];
Read More..
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…