Latest 0.3
Homepage https://github.com/puvanarajan/slnPopupmenu
License MIT
Platforms ios 7.0
Authors

Welcome to SLNPopupMenu!

SLNPopupMenu is iOS simple class library for create the popup menu

Import file
Method 01:

  1. Drag and drop the SLNPopupMenu folder (SLNPopupView.h and SLNPopupView.m)

  2. Import the file where you want
    #import "SLNPopupView.h"

Method 2: Using pod

pod 'SLNPopupMenu'
#import "SLNPopupView.h"

How to use

  1. Menu with Title, Description and Menu Icon

enter image description here

  NSArray *menu = @[
    @["Title 1", "Description", [UIImage ImageWithName:@"img1.png"]],
    @["Title 2", "Description", [UIImage ImageWithName:@"img2.png"]],
    @["Title 3", "Description", [UIImage ImageWithName:@"img3.png"]],
    @["Title 4", "Description", [UIImage ImageWithName:@"img4.png"]]
    ]

    [PopupView showPopWithDescriptionImage:menu font:nil touchPoint:[recognizer locationInView:self.view] success:^(NSInteger selectedIndex) {
                NSLog(@"Selected Index %li", (long)selectedIndex);
            } dismiss:^{
                NSLog(@"Disissed");
            }];
  1. Menu with Title and Description

enter image description here

NSArray *menu = @[
    @["Title 1", "Description"],
    @["Title 2", "Description"],
    @["Title 3", "Description"],
    @["Title 4", "Description"]
    ]

[PopupView showPopOnlyWithTitleAndDescription:menu font:nil touchPoint:[recognizer locationInView:self.view] success:^(NSInteger selectedIndex) {
            NSLog(@"Selected Index %li", (long)selectedIndex);
        } dismiss:^{
            NSLog(@"Disissed");
        }];
  1. Menu with Title and Image

enter image description here

NSArray *menu = @[
    @["Title 1", [UIImage ImageWithName:@"img1.png"]],
    @["Title 2", [UIImage ImageWithName:@"img2.png"]],
    @["Title 3", [UIImage ImageWithName:@"img3.png"]],
    @["Title 4", [UIImage ImageWithName:@"img4.png"]]
    ]

 [PopupView showPopOnlyWithTitleAndImage:menuArrayImage font:nil touchPoint:[recognizer locationInView:self.view] success:^(NSInteger selectedIndex) {
                NSLog(@"Selected Index %li", (long)selectedIndex);
            } dismiss:^{
                NSLog(@"Disissed");
            }];

Latest podspec

{
    "name": "SLNPopupMenu",
    "version": "0.3",
    "summary": "SLNPopupMenu is very simple menu",
    "description": "SLNPopupMenu is the very simple and user friendly controller. Easily user can intergrate this",
    "homepage": "https://github.com/puvanarajan/slnPopupmenu",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Puvanarajan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/puvanarajan/slnPopupmenu.git",
        "tag": "0.3"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "SLNPopupMenu/SLNPopupMenu/SLNPopupMenu/*"
}

Pin It on Pinterest

Share This