Skip to main content

UIPickerViewDataSource

Trait UIPickerViewDataSource 

Source
pub unsafe trait UIPickerViewDataSource: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn numberOfComponentsInPickerView(
        &self,
        picker_view: &UIPickerView,
    ) -> NSInteger
       where Self: Sized + Message { ... }
    fn pickerView_numberOfRowsInComponent(
        &self,
        picker_view: &UIPickerView,
        component: NSInteger,
    ) -> NSInteger
       where Self: Sized + Message { ... }
}
Available on crate feature UIPickerView only.
Expand description

Provided Methods§

Source

fn numberOfComponentsInPickerView( &self, picker_view: &UIPickerView, ) -> NSInteger
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
Source

fn pickerView_numberOfRowsInComponent( &self, picker_view: &UIPickerView, component: NSInteger, ) -> NSInteger
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIPickerViewDataSource

Source§

impl ProtocolType for dyn UIPickerViewDataSource

Source§

const NAME: &'static str = "UIPickerViewDataSource"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIPickerViewDataSource for ProtocolObject<T>

Implementors§