Latest 0.0.5
Homepage https://github.com/appsome/AccordionView
License Apache License, Version 2.0
Platforms ios , requires ARC
Authors

Very simple accordion view in Cocoa Touch.

Usage

AccordionView *accordion = [[AccordionView alloc] initWithFrame:CGRectMake(0, 0, 320, 420)];
[self addSubview:accordion];

// Only height is taken into account, so other parameters are just dummy
UIButton *header1 = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 0, 30)];
[header1 setTitle:@"First row" forState:UIControlStateNormal];

UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 200)];
// ... add subviews to view1

[accordion addHeader:header1 withView:view1];

// ... add more panels

[accordion setNeedsLayout];

// Set this if you want to allow multiple selection
[accordion setAllowsMultipleSelection:YES];

// Set this to NO if you want to have at least one open section at all times
[accordion setAllowsEmptySelection:YES];

// Remove section at index 1
[accordion removeHeaderAtIndex:1];

Todo

  • Horizontal view

LICENSE

Copyright (C) 2011-2014 Wojtek Siudzinski [email protected], Appsome

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Latest podspec

{
    "name": "AccordionView",
    "version": "0.0.5",
    "summary": "Simple accordion view in Cocoa Touch",
    "description": "                   Implementation of accordion view. Currently only supports vertical animation.n",
    "homepage": "https://github.com/appsome/AccordionView",
    "screenshots": "http://i.stack.imgur.com/Iu4ZL.png",
    "license": {
        "type": "Apache License, Version 2.0",
        "file": "LICENSE.md"
    },
    "authors": {
        "Wojtek Siudzinski": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/appsome/AccordionView.git",
        "tag": "0.0.5"
    },
    "source_files": "AccordionView.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This