Apple no longer allows developers to open the Settings application from within their apps (iOS 5.1 and later).
EDIT
According to @Mike's comment below, this can be done in iOS 8+
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
Using this prior to iOS 8 will result in a crash, however.