LFilterView – iOS Checkbox and Radio control

In many projects there are requirements for some kind of check or radio lists. In order to simplify the process I’ve created a control that allows easy creation of different check and radio list components.

The LFilterView and examples are available on GitHub at:


Related Post

Remember to share...Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInEmail this to someone

13 thoughts on “LFilterView – iOS Checkbox and Radio control

  1. Hi. Do you have any further instructions on how to set this control up in Xcode5? I’ve tried to follow the instructions given but the .xib files confuse me (I’ve only learned using storyboards). Thanks (from a beginner).

    1. Hi. I’m not sure what exactly is the problem. Try looking at the sample app, hopefully you’ll figure it out. If not, let me know about the specifics of the problem.

  2. Okay I’ve gotten further before getting stuck. Again, I’m sure this problem is simply because I’m a beginner… I’ve got a storyboard with a NavigationController that segues to a custom ViewController. This view controller has a LFilterView IBOutlet (_filterView) just like in your Example5, but I don’t see where the object gets initialized (it’s just null). Am I supposed to hook up that outlet by dragging it somewhere on the storyboard? I can’t seem to hook it to the ViewController. Thanks again.

    1. Hi. You have to connect the outlet from the storyboard to the ViewController class. If the connection does not exist your reference will bi nil.

  3. I can right-click the ViewController and I see the _filterView outlet. I can grab it’s circle and drag it… but where do I release it? The ViewController itself doesn’t seem to want to accept that outlet. 🙁

      1. Yes I did. I created a ViewController that’s just like your example #5…

        @interface jlcRuleViewController : UIViewController
        __weak IBOutlet LFilterView *_filterView;

        In the Storyboard, the CustomClass is set to jlcRuleViewController.
        But when I run it, the _filterView is nil within the viewDidLoad function.

          1. No, that’s the part that I don’t know how to do. I can right-click the ViewController and I see the _filterView outlet. I can grab it’s circle and drag it… but where do I release it?

          2. Oh, the View? Wait I have a custom ViewController–I don’t seem to have a view. Do I just drop a UIView onto my ViewController? But thenI still can’t drag my Outlet onto the view. Sorry I’m such a newbie…

  4. Oh, the LFilterView is a UIView. Okay, so I have to somehow connect the ViewController (which has a LFilterView) to its own LFilterView outlet? I’m so confused.

    1. In storyboard, did you change the UIView class to LFilterView? Open the interface and storyboard side by side, you should be able to drag that outlet circle from interface to the LFilterView in storyboard.

Leave a Reply

Your email address will not be published. Required fields are marked *