Created
June 9, 2015 23:19
-
-
Save MasazI/d393c6332dd4ef6cc63b to your computer and use it in GitHub Desktop.
Sample.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MixiSampleClass.h | |
// TrainingObjectiveC | |
// | |
// Created by masai on 2015/06/09. | |
// Copyright (c) 2015年 masai. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
// 列挙型(SampleType enum) | |
typedef NS_ENUM(NSInteger, SampleType){ | |
SampleTypeHoge = 0, | |
SampleTypeHuga, | |
SampleTypePiyo, | |
}; | |
@interface MixiSampleClass : NSObject | |
// プロパティ nonatomic=排他制御しない、strong=オーナーシップをもっている、setter&getterの自動生成 | |
// -setName, -name | |
@property (nonatomic, strong) NSString *name; | |
// インスタンスメソッド - | |
-(id)initWithName:(NSString*) name sampleType:(SampleType) sampleType; | |
// クラス・メソッド + | |
+(NSString*) getStaticString; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment