Type “myViewController” does not conform to protocol UIPIckerDataSource in Swift

You need to implement all the required methods of UIPickerViewDataSource and UIPickerViewDelegate, if you want to conform to these protocols. Swift is more like java when it comes to protocols because if you don’t implement all the required methods declared by a protocol you are going to get a compile time error instead of a … Read more

Source type 1 not available

This is because you are opening a camera on the simulator(or on a device not having camera)… since the code is something like [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera] and obviously, the simulator doesn’t have a camera… Proceed giving an alert like this, if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@”Error” message:@”Device has no camera.” delegate:nil cancelButtonTitle:@”OK” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)