Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (![transaction.notes isEqualToString:@"Additional Notes: "] && [transaction.notes length] > 0)
- {
- UIImageView *pin = [[UIImageView alloc] initWithFrame:CGRectMake(13, 30, 24, 25)];
- pin.image = [UIImage imageNamed:@"pin"];
- [customCell addSubview:pin];
- }
- - (BOOL)textViewShouldBeginEditing:(UITextView *)textView {
- if([[textView text] isEqualToString:@"Additional Notes: "]){
- [textView setText:@""];
- }
- return YES;
- }
- - (BOOL)textViewShouldEndEditing:(UITextView *)textView {
- if([[[textView text] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] isEqualToString:@""]){
- [textView setText:@"Additional Notes: "];
- }
- return YES;
- }
- - (BOOL)textViewShouldBeginEditing:(UITextView *)textView;
- - (void)textViewDidChange:(UITextView *)textView;
- - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement