반응형
앱 개발 시 앱정보(시스템 버전, 번들 버전, 번들 id)를 가져오는 함수입니다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
- (CGFloat)systemVersion
{
return [[[UIDevice currentDevice] systemVersion] floatValue];
}
- (NSString*)bundleVersion
{
return [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey];
}
- (NSString*)bundleShortVersion
{
return [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
}
- (NSString*)bundleIdentifier
{
return [[NSBundle mainBundle] bundleIdentifier];
}
|
cs |
반응형
'iOS' 카테고리의 다른 글
Screen size 함수 모음 (0) | 2018.05.11 |
---|---|
HTML의 이미지 태그 내용만 추출 하기 (0) | 2018.05.08 |