1

-[UIPickerView setFrame:]: invalid height value 200.0 pinned to 180.0 i got this error in nslog. but i do not care about it . any crash is possible in future ? . my coding is

    pickerviewdropdown.Dropoption    = [[Utility getSizeValues] mutableCopy];
        [pickerviewdropdown.pickerview reloadAllComponents];

        subOptionPopOver            = [[UIPopoverController alloc] initWithContentViewController:pickerviewdropdown];
        [subOptionPopOver setPopoverContentSize:CGSizeMake(200, 200)];

        [subOptionPopOver presentPopoverFromRect:[sender bounds]
                                          inView:sender
                        permittedArrowDirections:UIPopoverArrowDirectionAny
                                        animated:NO];

1 Answers1

2

Its obvious that you are setting the height to 200 when it should be 180. There will not be a crash but I suggest you change your code to CGSizeMake(200, 180) so you don't keep getting that error.

Kris Gellci
  • 9,539
  • 6
  • 40
  • 47