Listing 4-1  Handling the keyboard notifications


// Call this method somewhere in your view controller setup code.

- (void)registerForKeyboardNotifications

{

    [[NSNotificationCenter defaultCenter] addObserver:self

            selector:@selector(keyboardWasShown:)

            name:UIKeyboardDidShowNotification object:nil];


   [[NSNotificationCenter defaultCenter] addObserver:self

             selector:@selector(keyboardWillBeHidden:)

             name:UIKeyboardWillHideNotification object:nil];

}

 

// Called when the UIKeyboardDidShowNotification is sent.

- (void)keyboardWasShown:(NSNotification*)aNotification

{

    NSDictionary* info = [aNotification userInfo];

    CGSize kbSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;

    UIEdgeInsets contentInsets = UIEdgeInsetsMake(0.0, 0.0, kbSize.height, 0.0);

    scrollView.contentInset = contentInsets;

    scrollView.scrollIndicatorInsets = contentInsets;

 

    // If active text field is hidden by keyboard, scroll it so it's visible

    // Your application might not need or want this behavior.

    CGRect aRect = self.view.frame;

    aRect.size.height -= kbSize.height;

    if (!CGRectContainsPoint(aRect, activeField.frame.origin) ) {

        CGPoint scrollPoint = CGPointMake(0.0, activeField.frame.origin.y-kbSize.height);

        [scrollView setContentOffset:scrollPoint animated:YES];

    }

}


// Called when the UIKeyboardWillHideNotification is sent

- (void)keyboardWillBeHidden:(NSNotification*)aNotification

{

    UIEdgeInsets contentInsets = UIEdgeInsetsZero;

    scrollView.contentInset = contentInsets;

    scrollView.scrollIndicatorInsets = contentInsets;

}



'IPhone' 카테고리의 다른 글

UIWebView 를 빈화면으로 만들기  (0) 2013.01.08
Universal Static Library 만들기  (0) 2013.01.07
화면전환  (0) 2012.11.22
View Changed  (0) 2012.11.14
UITextField 선택하기  (1) 2012.11.14


jQuery Conference 참가 중..
점심은 도시락.. 생선과 회 몇조각...
배고픈 개발자

iPhone 에서 작성된 글입니다.

SDK 다운로드 (한글)

iso  : http://go.microsoft.com/fwlink/?LinkID=257234&clcid=0x412 

site : http://www.microsoft.com/ko-kr/download/details.aspx?id=35471

 

SDK 다운로드 (영문)

iso  : http://go.microsoft.com/fwlink/?LinkID=257234&clcid=0x409

site : http://www.microsoft.com/en-us/download/details.aspx?id=35471

 

 

시스템 요구 사항

지원 운영 체제: Windows 8, Windows 8 Pro

 

- Windows 8 64비트(x64) 클라이언트 버전

- Visual Studio Express 2012

- Visual Studio 2012 (Professional, Premium 또는 Ultimate Edition)

 

하드웨어:

  • 4GB의 사용 가능한 하드 디스크 공간
  • 4GB RAM
  • 64비트(x64) CPU

 


테마 적용 중...

'Windows Phone 7 > Chart' 카테고리의 다른 글

ChartTest - 소스정리  (0) 2011.05.30
ChartTest - 소스 정리  (0) 2011.05.28
Chart 정리 중  (0) 2011.05.27
Chart NEW  (0) 2011.05.27
SunChart - Android Chart Portint (4)  (0) 2011.05.20

Candle
Bar
Line

---

부가지표 - MA (이동평균선)

---

거래량 차트

---

'Windows Phone 7 > Chart' 카테고리의 다른 글

ChartTest  (0) 2011.06.03
ChartTest - 소스 정리  (0) 2011.05.28
Chart 정리 중  (0) 2011.05.27
Chart NEW  (0) 2011.05.27
SunChart - Android Chart Portint (4)  (0) 2011.05.20

기본 라인 그리기

'Windows Phone 7 > Chart' 카테고리의 다른 글

ChartTest  (0) 2011.06.03
ChartTest - 소스정리  (0) 2011.05.30
Chart 정리 중  (0) 2011.05.27
Chart NEW  (0) 2011.05.27
SunChart - Android Chart Portint (4)  (0) 2011.05.20

'Windows Phone 7 > Chart' 카테고리의 다른 글

ChartTest - 소스정리  (0) 2011.05.30
ChartTest - 소스 정리  (0) 2011.05.28
Chart NEW  (0) 2011.05.27
SunChart - Android Chart Portint (4)  (0) 2011.05.20
SunChart - Android Chart Portint (3)  (0) 2011.05.18

'Windows Phone 7 > Chart' 카테고리의 다른 글

ChartTest - 소스 정리  (0) 2011.05.28
Chart 정리 중  (0) 2011.05.27
SunChart - Android Chart Portint (4)  (0) 2011.05.20
SunChart - Android Chart Portint (3)  (0) 2011.05.18
SunChart - Android Porting  (0) 2011.05.17

+ Recent posts