As of 3.2, you can use the CALayer shadow properties.
_textField.layer.shadowOpacity = 1.0;
_textField.layer.shadowRadius = 0.0;
_textField.layer.shadowColor = [UIColor blackColor].CGColor;
_textField.layer.shadowOffset = CGSizeMake(0.0, -1.0);
More Related Contents:
- How can I get a precise time, for example in milliseconds in Objective-C?
- Landscape Mode ONLY for iPhone or iPad
- How to resize a UIModalPresentationFormSheet?
- UITextField format in xx-xx-xxx
- How do I make UITableViewCell’s ImageView a fixed size even when the image is smaller
- Figure out UIBarButtonItem frame in window?
- Keeping object on top of keyboard in the event of becomeFirstResponder or resignFirstResponder?
- UIPageViewController returns no Gesture Recognizers in iOS 6
- UITextField: move view when keyboard appears
- Changing the background color of a UIAlertView?
- How to set a custom font for entire iOS app without specifying size
- Opening popup links in UIWebView, possible?
- How to Dismiss 2 Modal View Controllers in Succession?
- How to detect UIKeyboard “backspace” button touch on UITextField? [duplicate]
- Get Exif data from UIImage – UIImagePickerController [duplicate]
- Is it possible to reference a variable with a string and an int?
- Difference between [NSMutableArray array] vs [[NSMutableArray alloc] init]
- Property vs. instance variable
- Converting & to & in Objective-C [duplicate]
- Playing system sound without importing your own
- iPhone ivar naming convention [duplicate]
- Determining if an iPhone is Jail broken Programmatically
- How to detect that animation has ended on UITableView beginUpdates/endUpdates?
- NSString retainCount is 2147483647 [duplicate]
- NSURLRequest : Post data and read the posted page
- Choose custom sound for local notifications
- self.delegate = self; what’s wrong in doing that?
- Where should I save data & files I want to keep long term, and how do I prevent iCloud from backing them up
- Black screen instead of launch image on iPad
- How to handle duplicate symbol error from 3rd party libraries?