//Suppress the warning by changing this: controller.delegate = self; //to this: controller.delegate = (id)self;