• This repository has been archived on 08/Apr/2020
  • Stars
    star
    261
  • Rank 156,630 (Top 4 %)
  • Language
    Objective-C
  • Created almost 12 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[DEPRECATED] Objective-C component that adds menu to the navigation bar

[DEPRECATED] Navigation Menu for iOS

Version 1.0

Navigation Menu is an Objective-C component that adds possibility to show menu from navigation bar. Inspired by Vkontakte app. Minimum iOS target is 5.0

TODO: add Pod

Customization

  • Menu item height + (float)itemCellHeight;
  • Animation duration of menu appearence + (float)animationDuration;
  • Menu substrate alpha value + (float)backgroundAlpha;
  • Menu alpha value + (float)menuAlpha;
  • Value of bounce + (float)bounceOffset;
  • Arrow image near title *+ (UIImage )arrowImage;
  • Distance between Title and arrow image + (float)arrowPadding;
  • Items color in menu *+ (UIColor )itemsColor;
  • Menu color *+ (UIColor )mainColor;
  • Item selection animation speed + (float)selectionSpeed;
  • Menu item text color *+ (UIColor )itemTextColor;
  • Selection color (will create a gradiend with provided color at the top and 35% darker in the bottom) *+ (UIColor )selectionColor;

Example

//In your header (.h) file
#import "SINavigationMenuView.h"

@interface HAViewController : UIViewController <SINavigationMenuDelegate>

@end

//In your implementation (.m) file
- (void)viewDidLoad
{
	[super viewDidLoad];
	// check if we have a navigationItem
	if (self.navigationItem) {
    	CGRect frame = CGRectMake(0.0, 0.0, 200.0, self.navigationController.navigationBar.bounds.size.height);
    	SINavigationMenuView *menu = [[SINavigationMenuView alloc] initWithFrame:frame title:@"Menu"];
    	//Set in which view we will display a menu
    	[menu displayMenuInView:self.view];
    	//Create array of items
    	menu.items = @[@"News", @"Top Articles", @"Messages"];
    	menu.delegate = self;
    	self.navigationItem.titleView = menu;
	}
}

//Delegate method
- (void)didSelectItemAtIndex:(NSUInteger)index
{
	NSLog(@"did selected item at index %d", index);
}

You will need to add QuartzCore framework. This component use ARC. For cusomization see SIMenuConfiguration .h/.m files.

More Repositories

1

Haptico

Haptico ๐Ÿ“ณ - easy to use haptic feedback generator with pattern-play support
Swift
485
star
2

Popover

Custom macOS Popover ๐Ÿ’ฌ
Swift
124
star
3

Menu

The most customizable menu for macOS apps.
Swift
117
star
4

SegmentedProgressView

๐Ÿ”˜๐Ÿ”˜๐Ÿ”˜โšช๏ธโšช๏ธ Simple Instagram-like segmented progress view with completion handler and different time interval for each segment
Swift
93
star
5

Snackbar

A Snackbar for macOS applications
Swift
13
star
6

SoundPlayer

๐Ÿ”ŠSuper simple, low-latency sound player.
Swift
4
star
7

StatesController

UIViewController which implements switching states: Loading, No Data, Error and Content
Swift
4
star
8

LaRevenueCat

LaMetric dashboard for RevenueCat
Swift
3
star
9

Anchor

Swift
3
star
10

CopyIt

Showing Copy menu for each and every view in your app โœ‚๏ธ
Swift
2
star
11

LoadingViewController

View controller which supports changing of it's content with predefined views: ContentView, LoadingView, ErrorView, NoDataView
Swift
2
star
12

ThumbnailsGenerator

Swift
2
star
13

Lasso

Intuitive and native Window Manager for Mac
2
star
14

InstagramStoryTransition

Swift
1
star
15

Widgy

1
star
16

CleanSwiftXCodeTemplates

Makefile
1
star
17

EventMonitor

Swift
1
star
18

AquaSmartGUI

C
1
star
19

Menu-Example

Example app for custom Mac OS Menu
Swift
1
star
20

SlidingButton

Swift
1
star
21

ViewPushBack

UIView push back
Objective-C
1
star
22

FamilyPocket-iOS

Simple app for family budget tracking ๐Ÿ’ฐ
Swift
1
star
23

Altum

1
star
24

ShakeDetector

๐ŸŒ‹ A lightweight and customizable mouse shake detection library for macOS applications.
Swift
1
star
25

simctrl

Swift package which implements simctl functionality
Swift
1
star