Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #528 from ClementPadovani/patch-1
Browse files Browse the repository at this point in the history
Added correct nullability values for initializers
  • Loading branch information
Ignacio Romero Zurbuchen authored Oct 12, 2016
2 parents e841858 + 5d2806e commit 28c015e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/SLKTextViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ NS_CLASS_AVAILABLE_IOS(7_0) @interface SLKTextViewController : UIViewController
@param style A constant that specifies the style of main table view that the controller object is to manage (UITableViewStylePlain or UITableViewStyleGrouped).
@return An initialized SLKTextViewController object or nil if the object could not be created.
*/
- (instancetype)initWithTableViewStyle:(UITableViewStyle)style;
- (instancetype __nullable)initWithTableViewStyle:(UITableViewStyle)style;

/**
Initializes a collection view controller and configures the collection view with the provided layout.
Expand All @@ -144,15 +144,15 @@ NS_CLASS_AVAILABLE_IOS(7_0) @interface SLKTextViewController : UIViewController
@param layout The layout object to associate with the collection view. The layout controls how the collection view presents its cells and supplementary views.
@return An initialized SLKTextViewController object or nil if the object could not be created.
*/
- (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout;
- (instancetype __nullable)initWithCollectionViewLayout:(UICollectionViewLayout *)layout;

/**
Initializes a text view controller to manage an arbitraty scroll view. The caller is responsible for configuration of the scroll view, including wiring the delegate.
@param a UISCrollView to be used as the main content area.
@return An initialized SLKTextViewController object or nil if the object could not be created.
*/
- (instancetype)initWithScrollView:(UIScrollView *)scrollView;
- (instancetype __nullable)initWithScrollView:(UIScrollView *)scrollView;

/**
Initializes either a table or collection view controller.
Expand All @@ -161,7 +161,7 @@ NS_CLASS_AVAILABLE_IOS(7_0) @interface SLKTextViewController : UIViewController
@param decoder An unarchiver object.
@return An initialized SLKTextViewController object or nil if the object could not be created.
*/
- (instancetype)initWithCoder:(NSCoder *)decoder;
- (instancetype __nullable)initWithCoder:(NSCoder *)decoder;

/**
Returns the tableView style to be configured when using Interface Builder. Default is UITableViewStylePlain.
Expand Down

0 comments on commit 28c015e

Please sign in to comment.