일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 반려동물
- 종이모형
- 세팔
- Wall-E
- 산책묘
- 고양이
- codility
- 식충식물
- cephalotus
- 명랑이
- 태그를 입력해 주세요.
- 애완동물
- CountDiv
- UIAlertView addSubView
- 블루베리
- ios
- objective-c
- 스파르탄
- Blueberry
- 세팔로투스
- 끈끈이주걱
- PassingCars
- 아기고양이
- UIAlertView setFrame
- 끄니
- 고양이 산책
- creative park
- paper-replika
- 실생묘
- paper craft
- Today
- Total
목록ios (6)
꼼시월드
https://codility.com/c/intro/demoQQDY3P-6DY int solution(NSMutableArray *A) { // write your code in Objective-C 2.0 int east = 0, west = 0; for (NSNumber *num in A) { int dir = [num intValue]; (dir) ? west++ : east++; } int wc = 0; int ec = 0; int ret = 0; for (int i = 0 ; i 1000000000) re..
소스코드 NSArray *arr = @[ @{@"name": @"kim", @"profile": @{@"type": @1} }, @{@"name": @"jung", @"profile": @{@"type": @1} }, @{@"name": @"park", @"profile": @{@"type": @2} }, @{@"name": @"hong", @"profile": @{@"type": @2} }, ]; //ascending:YES 오름차순 :NO 내림차순 NSSortDescriptor *typeDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"profile.type" ascending:NO]; NSArray *sortedArray = [arr sortedArr..
카카오톡, 마이피플, 라인 앱 설치여부 확인하기-(void)canOpenInviteAppURL{ NSString *kakaotalk = [NSString stringWithFormat:@"%@",@"kakaolink://"]; NSString *mypeople = [NSString stringWithFormat:@"%@",@"myp://"]; NSString *line = [NSString stringWithFormat:@"%@",@"line://"]; BOOL isInstalledKakaoTalk = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:kakaotalk]]; BOOL isInstalledMyPeople = [[UIApp..
ios에서 라인 앱이 설치되었는지 확인하려면 아래 메소드를 이용하면 된다. -(BOOL)canOpenLine{ NSString *lineURL = @"line://"; return [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:lineURL]]; } 설치유무에 따라서 BOOL 값을 리턴한다. 아래와 같이 사용하면 내가 만든 앱에서 라인앱을 실행하여 원하는 메시지나 이미지를 보낼 수 있다. -(IBAction)lineInvite:(id)sender{ if(![self canOpenLine]){ return; } NSString *textString = @"라인 친구에세 보낼 메시지"; NSString *LINEUrlString = [..
테이블 셀을 접었다 펴는 샘플입니다. 셀의 헤더엔 타이틀 라벨을 넣었구요 타이틀라벨에 제스쳐를 정의하고 라벨의 태그에 따라서 몇번째 셀을 클릭했는지 알수 있도록 했습니다. 그리고 테이블 셀의 헤더를 이용하여 헤더 클릭시 row의 높이를 0으로 조절 하여 감추는것처럼 보이게 됩니다.
-(BOOL)textFieldShouldBeginEditing:(UITextField *)textField{ //1 return true;}-(void)textFieldDidBeginEditing:(UITextField *)textField{ //2 NSLog(@"being editing"); } -(BOOL)textFieldShouldEndEditing:(UITextField *)textField{ //3 return true;}-(void)textFieldDidEndEditing:(UITextField *)textField{ //4 NSLog(@"ending editing");}