Skip to content

Instantly share code, notes, and snippets.

View Shosta's full-sized avatar
🐳
Furiously hacking

Rémi Lavedrine Shosta

🐳
Furiously hacking
View GitHub Profile
@Shosta
Shosta / NSString+LabelSize.h
Created August 7, 2013 14:54
Calculate a Label size based on its content and a width. It is really useful when you wants to calculate a cell's height from its NSString label's content.
//--------------------------------------------------------
//
//--------------------------------------------------------
// Project :
// File : NSString+LabelSize.h
// Created : $ 11/06/12 $
// Maintainer : $ Rémi LAVEDRINE $
//
// Copyright Rémi LAVEDRINE 2004-2012, All Rights Reserved
//
@Shosta
Shosta / OLGradientView.h
Created August 7, 2013 14:49
Allow the developer to set a custom color or gradient to a GRoupedTableViewCell by using the [UISelectedTableViewCell configureSelectedBackgroundForCell:(UITableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath forRowCount:(int)rowCount]; It is useful prior to iOS7 as there is no more GroupedTableViewCell on iOS7. Moreover the developer can s…
//
// OLGradientView.h
//
//
// Created by Rémi LAVEDRINE on 5/6/09.
// Copyright Rémi LAVEDRINE 2009. All rights reserved.
//
#import <UIKit/UIKit.h>