Skip to content

Instantly share code, notes, and snippets.

View iampushpinder's full-sized avatar
🏠
Working from home

Nomadic Nayyar iampushpinder

🏠
Working from home
View GitHub Profile
@iampushpinder
iampushpinder / UINavigationBar+CustomHeight.h
Last active August 29, 2015 14:25 — forked from maciekish/UINavigationBar+CustomHeight.h
Custom UINavigationBar height working in iOS 7 and 8. To use, find your navigation bar reference and just setHeight:200 etc.
//
// UINavigationBar+CustomHeight.h
//
// Copyright (c) 2014 Maciej Swic
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
/** associate without labels */
enum Trade {
case Buy(String, Int)
case Sell(String, Int)
}
Trade.Buy("Firstbank PLC", 300)
Trade.Sell("Firstbank PLC", 700)
/** associate with labels */