Skip to content

Commit

Permalink
Apostrophes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdznr committed Aug 15, 2015
1 parent 4bea197 commit c098d09
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// MTZWhatsNewFeatureCollectionViewCell.h
// What's New
// Whats New
//
// Created by Matt Zanchelli on 5/23/14.
// Copyright (c) 2014 Matt Zanchelli. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// MTZWhatsNewFeatureCollectionViewCell.m
// What's New
// Whats New
//
// Created by Matt Zanchelli on 5/23/14.
// Copyright (c) 2014 Matt Zanchelli. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#import "MTZWhatsNewViewController.h"

/// A What's New View Controller subclass that presents the features in a list or grid.
/// @discussion At the root of the features dictionary should be strings representing the app versions. Corresponding to each version string should be an array of features. Each feature should be a dictionary containing string values for any and all of the following: "title", "detail", and "icon". The value of "title" will be displayed in larger/bolder type. The value of "detail" will be displayed below title. The value of "icon" will be used to find an image resource in the app's bundle to use as a representation of the feature.
/// A Whats New View Controller subclass that presents the features in a list or grid.
/// @discussion At the root of the features dictionary should be strings representing the app versions. Corresponding to each version string should be an array of features. Each feature should be a dictionary containing string values for any and all of the following: "title", "detail", and "icon". The value of "title" will be displayed in larger/bolder type. The value of "detail" will be displayed below title. The value of "icon" will be used to find an image resource in the apps bundle to use as a representation of the feature.
/*
Example:
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ - (void)setFeatures:(NSDictionary *)features
}
self.allFeatures = allFeatures;

// Reload the collection view's data.
// Reload the collection views data.
[self.collectionView reloadData];
}

Expand All @@ -179,7 +179,7 @@ - (void)setTemplatedIcons:(BOOL)templatedIcons

- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section
{
// "What's New"
// "Whats New"
if ( section == 0 ) {
if ( [self shouldUseGridLayout] ) {
return CGSizeMake(collectionView.bounds.size.width, 115);
Expand Down Expand Up @@ -235,7 +235,7 @@ - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView
{
UICollectionReusableView *view = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"whatsnew" forIndexPath:indexPath];

// Create label for "What's New" title.
// Create label for "Whats New" title.
UILabel *label = [[UILabel alloc] initWithFrame:view.bounds];
[view addSubview:label];
label.translatesAutoresizingMaskIntoConstraints = NO;
Expand Down Expand Up @@ -296,7 +296,7 @@ - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView
- (BOOL)shouldUseGridLayout
{
// iPhone width = 320
// iPad's UIModalPresentationFormSheet width = 540
// iPads UIModalPresentationFormSheet width = 540
return self.collectionView.bounds.size.width >= 540;
}

Expand Down
10 changes: 5 additions & 5 deletions Classes/MTZWhatsNewViewController/MTZWhatsNewViewController.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// MTZWhatsNewViewController.h
// What's New
// Whats New
//
// Created by Matt Zanchelli on 5/17/14.
// Copyright (c) 2014 Matt Zanchelli. All rights reserved.
Expand All @@ -17,12 +17,12 @@ typedef NS_ENUM(NSUInteger, MTZWhatsNewViewControllerStyle) {
};


/// @c MTZWhatsNewViewController is an abstract base class for "What's New" view controller classes. Included in the project is a subclass of @c MTZWhatsNewViewController, @c MTZWhatsNewGridViewController, which presents features in a list or grid layout (depending on the context). Only subclass @c MTZWhatsNewViewController if you want a custom presentation, otherwise @c MTZwhatsNewGridViewController is recommended.
/// @c MTZWhatsNewViewController is an abstract base class for "Whats New" view controller classes. Included in the project is a subclass of @c MTZWhatsNewViewController, @c MTZWhatsNewGridViewController, which presents features in a list or grid layout (depending on the context). Only subclass @c MTZWhatsNewViewController if you want a custom presentation, otherwise @c MTZwhatsNewGridViewController is recommended.
@interface MTZWhatsNewViewController : UIViewController

#pragma mark - Initialization

/// Initializes and returns a What's new view controller object having the given features.
/// Initializes and returns a Whats new view controller object having the given features.
/// @param features The features to display.
/// @return Returns an initialized @c MTZWhatsNewViewController object or @c nil if the object could not be successfully initialized.
/// @discussion See the documentation for @c features to see the expected format.
Expand All @@ -48,7 +48,7 @@ typedef NS_ENUM(NSUInteger, MTZWhatsNewViewControllerStyle) {

#pragma mark - Appearance Customization

/// The style of what's new view controller.
/// The style of whats new view controller.
/// @discussion Setting this turns @c automaticallySetStyle to @c NO . When @c automaticallySetStyle is set to @c YES , do not expect this value to be constant.
@property (nonatomic) MTZWhatsNewViewControllerStyle style;

Expand All @@ -70,7 +70,7 @@ typedef NS_ENUM(NSUInteger, MTZWhatsNewViewControllerStyle) {
#pragma mark - Responding to Style Change

/// Notifies the view controller that the effective style has been changed.
/// @discussion This method is called when the style has been changed. You should override this method to perform custom tasks associated with changing the style. If you override this method, you must call super at some point in your implementation. Note that this can be called when the receiver's @c automaticallySetStyle is set to @c YES and not only after changes are made directly to the @c style property.
/// @discussion This method is called when the style has been changed. You should override this method to perform custom tasks associated with changing the style. If you override this method, you must call super at some point in your implementation. Note that this can be called when the receivers @c automaticallySetStyle is set to @c YES and not only after changes are made directly to the @c style property.
- (void)styleDidChange __attribute__((objc_requires_super));

/// The content inset to use in a subclss.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// MTZWhatsNewViewController.m
// What's New
// Whats New
//
// Created by Matt Zanchelli on 5/17/14.
// Copyright (c) 2014 Matt Zanchelli. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// NSLayoutConstraint+Common.h
// What's New
// Whats New
//
// Created by Matt Zanchelli on 5/25/14.
// Copyright (c) 2014 Matt Zanchelli. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// NSLayoutConstraint+Common.m
// What's New
// Whats New
//
// Created by Matt Zanchelli on 5/25/14.
// Copyright (c) 2014 Matt Zanchelli. All rights reserved.
Expand Down Expand Up @@ -28,8 +28,8 @@ + (NSArray *)constraintsToStretchVerticallyToSuperview:(UIView *)view
return [self constraintsToStretchToSuperview:view horizontallyOrVertically:@"V"];
}

/// Create constraints to fill a particular view to it's superview in one dimension.
/// @param view The subview to stretch fill to it's superview in one dimension.
/// Create constraints to fill a particular view to its superview in one dimension.
/// @param view The subview to stretch fill to its superview in one dimension.
/// @param horizontallyOrVertically @c @"H" or @c @"V" to signify horizontal or vertical stretch to superview.
/// @return An array of constraints to add to the superview to fill @c view to itself in one dimension.
+ (NSArray *)constraintsToStretchToSuperview:(UIView *)view horizontallyOrVertically:(NSString *)horizontallyOrVertically
Expand Down

0 comments on commit c098d09

Please sign in to comment.