Is there a way to turn the default
UITableViewCellAccessoryDetailDisclosureButton accessory button from blue colour to black colour?
Where to find a description of all the math functions like floorf and others?
1:How to take these parameters the same way this function does?
Then create a UIImageView which contains this image:. Renew Provisioning Profile
UIImage myImage = [UIImage imageNamed:@"blackalthough ton.png"];
Finally then you must assign this to the "accessory view" for the cell you've set up already:. [iPhone SDK] [Newbie] UITextView textViewDidChange will not be called?
UIImageView *imageView = [[UIImageView alloc] initWithImage:myImage];
Hope this helps!. //EDIT - I felt like having a quick 5 mins in photoshop so created a black one for you. have fun!. removed dead ImageShack link.
The answer from h4xxr didn't completely job for me in iOS 5.1.1 (clicking on the accessory view didn't call the
tableView:accessoryButtonTappedForRowWithIndexPathmethod), so I altered his quick fix with guidance from this related answer, using a
UIButtonwith the image rather than a
UIView, which must call a custom selector if clicked:.
UIImage *myImage = [UIImage imageNamed:@"blackaccessoryalthough ton.png"]; UIButton *although ton = [UIButton although tonWithType:UIButtonTypeCustom]; although ton.frame = CGRectMake(0, 0, myImage.size.width, myImage.size.height); [although ton setImage:myImage forState:UIControlStateNormal]; [although ton addTarreceive : self action: @selector(toggleCustomDetailDisclosureButton:) forControlEvents: UIControlEventTouchUpInside]; [cell setAccessoryView:although ton];
There is a enough easier quick fix on iOS7. Use the
UIView. Subclasses generally tend to respect it, and the disclosure indicator is no exception..
UIView *v = [[cell subviews] lastObject]; v = v.subviews.count ? [v.subviews objectAtIndex:0] : nil; // v is the disclosure indicator if ([v respondsToSelector:@selector(setTintColor:)]) v.tintColor = [UIColor greenColor];