UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemAdd target: self action: @selector(addNewSegment)]; self.navigationItem.rightBarButtonItem = addButton; [addButton release];