fppopover

FPPopover won't pop up on button press, just NSLogs “FPPopoverController dealloc”

故事扮演 提交于 2019-12-24 20:17:53
问题 I have the following code: - (IBAction)textOptionsTapped:(UIBarButtonItem *)sender { UIView *buttonView = [sender valueForKey:@"view"]; FPPopoverController *popover = [[FPPopoverController alloc] init]; popover.arrowDirection = FPPopoverArrowDirectionDown; [popover presentPopoverFromView:buttonView]; } What exactly is causing my app to NSLog "FPPopoverController dealloc" every time I press the button? 回答1: Here's my implementation that's working in production. Try this out. It may just be

FPPopover cell.detailTextLabel.text

谁都会走 提交于 2019-12-11 07:43:53
问题 For those that are familiar with FPPopOver: https://github.com/50pixels/FPPopover Can the cells display subtitle? I had to attach my UITableViewController to a nib. In the Storyboard I have the cell set up to show subtitle, however, when the popOver appears on the iPhone, only cell.textLabel.text is visible - cell.detailTextLabel.text is not appearing. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @