Developer 90

[Android]위치정보 설정확인하기, 장소및보안에서 무선 네트워크 사용 확인하기, 장소및보안으로 넘어가기

LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000L,1.0f, this); if(!(locationManager.isProviderEnabled (LocationManager.NETWORK_PROVIDER))){ startActivityForResult(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS), 0); Toast.makeText(class.this, "무선 네트워크 사용을 클릭해..

Developer/Android 2011.02.07

[IPhone] TableView 터치시 파란색을 다른색으로 바꾸기

UITableViewCell 에 보면 UITableViewCellSelectionStyle enum을 보면 The style of selected cells. typedef enum { UITableViewCellSelectionStyleNone, UITableViewCellSelectionStyleBlue, UITableViewCellSelectionStyleGray } UITableViewCellSelectionStyle; 이렇게 나와있다. 다른색으로 세팅을 할려면 CustromCell을 직접 만들어서 적용하면 된다. 또는 selected img로 등록해서 적용하면 어떨까?

Developer/iOS 2011.01.19

[IPhone] TabBarController의 TabBar(hidden) 숨기기.

단순히 탭바를 숨기는 것은. self.tabBarController.tabBar.hidden = YES; 로 해주면 되지만, 이렇게 하게 되면, 탭바영역이 하얀색으로 된다. 즉, 탭바가 영역을 차지하고 있는데 안보이는것 뿐이다.  탭바 기반의 네비게이션뷰에서 네비게이션을 푸쉬하고 넘어갔을때 탭바가 없길 바란다면, 아래와 같이 푸쉬하기 전에 탭바를 숨겨야 한다. DetailViewController *detail_rootview = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:nil]; //TabBar를 미리 없애고 Push를 해주어야 한다. detail_rootview.hidesBottomBarWhenP..

Developer/iOS 2011.01.18

[IPhone] 아이폰에서 주소록 가져오기.

ABAddressBookRef addressBook = ABAddressBookCreate(); CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople(addressBook); CFIndex nPeople = ABAddressBookGetPersonCount(addressBook); friend_info = [[NSMutableArray alloc]init]; //===================================================// // 저장된 구조체를 돌면서 해당 데이터를 추출해 옵니다. //===================================================// for (int i = 0; i < nPeo..

Developer/iOS 2011.01.12

[IPhone]UIAlertView(경고창) 띄우는 방법과 경고창이 여러개일 때, 이벤트 구별하는 방법

//경고창 1. UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"A" message:@"" delegate:self cancelButtonTitle:@"확인" otherButtonTitles:@"취소", nil]; [alert show]; [alert release]; //경고창 2 UIAlertView *alert =[[UIAlertView alloc]initWithTitle:@"B" message:@"" delegate:self cancelButtonTitle:@"확인" otherButtonTitles:@"취소", nil]; [alert show]; [alert release]; //경고창 3 UIAlertView *alert = [[UIAlert..

Developer/iOS 2011.01.12