본문 바로가기 메뉴 바로가기

사과 냄새나는 IT이야기 TAESTORY,

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

사과 냄새나는 IT이야기 TAESTORY,

검색하기 폼
  • 분류 전체보기 (325)
    • 헉!! (213)
      • C언어 (3)
      • C++ (0)
      • iOS (11)
      • SQLite (1)
      • jsp, java (70)
      • CCNA (1)
      • javascript (24)
      • MySQL (12)
      • PostgreSQL (2)
      • Oracle (5)
      • Objective C (21)
      • Swift (3)
      • SQL Server (MS-SQL) (3)
      • XE, ZEROBOARD (1)
      • Mac Developer Library (0)
      • Arduino (1)
      • ETC (55)
    • 즐겨보자!! (35)
      • 내가 만난 에러 (2)
      • 일상19 (1)
      • 일상20 (5)
      • 일상21 (1)
      • 일상22 (5)
      • 일상23 (2)
      • 일상24 (2)
      • 그냥 (9)
      • 기타 (5)
      • 금오공업고등학교 (3)
    • 그냥좋아!! (76)
      • 음악 (22)
      • ipod (2)
      • MAC (16)
      • iPhone (9)
      • Zero (7)
      • IT관심사 (16)
      • 최근이슈 (2)
      • 사진 (1)
  • 방명록

헉!!/iOS (11)
[iOS] iOS8.0 이상에서 위치정보 사용 설정

iOS 8.0이상에서 위치정보 사용이 되지않아 검색해보니 아래 글이 있어서 적용해보니 잘되었습니다.http://stackoverflow.com/questions/26631417/allowing-location-access-inside-uiwebview 요약하자면 InfoPlist에 NSLocationWhenInUseUsageDescription를 추가해주면 된다는 내용 입니다.String 타입으로 추가해서 위치정보사용 관련 안내메시지에 추가적으로 전달하고자 하는 내용을 value에 적어주면 됩니다. 만약 앱이 실행중이지 않을때도 위치정보를 수집하겠다면 NSLocationAlwaysUsageDescription를 추가해주면 됩니다.

헉!!/iOS 2015. 11. 18. 14:46
[iOS 개발] 네비게이션바의 배경색(background color)을 바꾸기 위한 메소드

위 캡쳐 이미지는 기본적인 네비게이션바의 색상을 가지고 있습니다. 이 색상을 아래와 같은 컬러로 바꾸어 보고자 할때 사용하는 메소드가 (void)viewWillAppear:(BOOL)animated 입니다. 위 메소드 내부를 구현해보면 - (void)viewWillAppear:(BOOL)animated { [self.navigationController.navigationBar setTintColor:[UIColor blackColor]]; } 다음과 같이 구현하면 위 스크린샷과 같이 검은색으로 네비게이션바의 색상이 바뀝니다. 위 소스에서 [UIColor blackColor]부분중 blackColor를 다른 원하는 색으로 바꾸시면 됩니다.

헉!!/iOS 2011. 9. 15. 21:03
[iOS 개발] 네비게이션 타이틀 이름을 지정

저의 경우 탭바 형식에 네비게이션 컨트롤러를 넣어서 그 컨트롤러의 타이틀을 지정할때 사용하였습니다. 사용예제는 아래와 같습니다. - (id) initWithCoder:(NSCoder *)aDecoder { if (self=[super initWithCoder:aDecoder]) { self.title = @"INSERT Title NAME"; } return self; } 참고용으로 개발자 문서의 레퍼런스를 올립니다. NSCoding Protocol Reference Adopted by Various Cocoa classes Framework /System/Library/Frameworks/Foundation.framework Availability Available in iOS 2.0 and later..

헉!!/iOS 2011. 9. 15. 16:31
[iOS 개발] UIPickerViewDataSource Protocol Reference

UIPickerViewDataSource Protocol Reference Conforms to NSObject Framework /System/Library/Frameworks/UIKit.framework Availability Available in iOS 2.0 and later. Declared in UIPickerView.h Related sample code iPhoneCoreDataRecipes iPhoneMixerEQGraphTest LocateMe QuartzDemo OverviewThe UIPickerViewDataSource protocol must be adopted by an object that mediates between a UIPickerView object and your..

헉!!/iOS 2011. 9. 14. 21:22
[iOS 개발] UIPickerViewDelegate Protocol Reference

UIPickerViewDelegate Protocol Reference Conforms to NSObject Framework /System/Library/Frameworks/UIKit.framework Availability Available in iOS 2.0 and later. Declared in UIPickerView.h Related sample code iPhoneCoreDataRecipes iPhoneMixerEQGraphTest LocateMe QuartzDemo OverviewThe delegate of a UIPickerView object must adopt this protocol and implement at least some of its methods to provide th..

헉!!/iOS 2011. 9. 14. 21:20
[iOS 개발] pickerView:numberOfRowsInComponent

UIPickerViewDataSource 프로토콜을 따르면 반드시 구현해야 하는 메소드로써 해당 컬림의 줄 개수를 반환합니다. pickerView:numberOfRowsInComponent:Called by the picker view when it needs the number of rows for a specified component. (required) - (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component ParameterspickerViewThe picker view requesting the data. componentA zero-indexed number identifying..

헉!!/iOS 2011. 9. 14. 21:17
[iOS 개발] TableView를 사용할 경우 행이 선택되었는지 확인해주는 메소드

didSelectRowAtIndexPath는 TableView를 사용할 경우 지정된 행이 선택되었는지 알려줍니다. tableView:didSelectRowAtIndexPath: Tells the delegate that the specified row is now selected. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath Parameters tableView A table-view object informing the delegate about the new row selection. indexPath An index path locating the new selected row i..

헉!!/iOS 2011. 8. 4. 22:51
[iOS 개발] IBAction을 사용하여 View 전환하기

IBAction을 사용하여 버튼 터치를 통해 View간의 전환을 위한 소스입니다. AppDelegate.h 소스 ───────── #import @interface ChangeViewAppDelegate : NSObject { UIWindow *window; IBOutlet UIView *firstView; IBOutlet UIView *secondView; } -(IBAction) ChangeView; @property (nonatomic, retain) IBOutlet UIWindow *window; @end AppDelegate.m 소스 ───────── #import "ChangeViewAppDelegate.h" @implementation ChangeViewAppDelegate @synthesi..

헉!!/iOS 2011. 7. 22. 22:29
이전 1 2 다음
이전 다음
공지사항
  • about TAESTORY
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 티몰스 의 랩하는 프로그래머
  • 볼매남의 세상리뷰
  • Access-list 10 permit any
  • IT세상에 나를 내던져라
  • 달과 강물
  • 四神`s world
TAG
  • MySQL
  • iBATIS
  • Java
  • 티스토리챌린지
  • IT
  • iPhone
  • Spring
  • Objective C
  • 아이폰 어플리케이션
  • 아이폰
  • Objective-C
  • Programming
  • tomcat
  • 아이폰 개발
  • Object C
  • oracle
  • JavaScript
  • iOS 개발
  • 오블완
  • 자바
  • 자바스크립트
  • 오브젝트 C
  • zero
  • SQL
  • MAC OSX 10.7
  • 제이쿼리
  • jQuery
  • 오브젝티브 C
  • Spring Framework
  • JSP
more
«   2025/06   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바