You should be able to set it like
UIBarButtonItem *trashButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemTrash target:self action:nil];
Check out the Apple Documentation for this here
Unfortunately, Apple only allow you to set this when you initialize the UIBarButtonItem
there isn't a property to set this.