이 블로그 검색

2012년 3월 27일 화요일

[iOS] View의 중첩

아이폰 개발에서
뷰에 뷰를 겹칠 때,
항상 왼쪽의 objects 박스의 아래쪽에 위치한 뷰가 위(표면)에 나타난다.
즉, 위에 위치한 뷰는 아래 위치한 뷰에 의해 가려진다.

[iOS] Button 사용시

아이폰 개발에서 버튼에 셀렉트 효과를 줄 때 state Config 메뉴에서 각각 상태에 따라 다른 이미지를 넣는다.

* Default -> 평상시(버튼 안 눌렀을 때)
* Selected -> 버튼이 선택되었을 때, 즉 한번 선택되면 계속 변한 상태(이미지)로 된다.
* Highlighted -> 버튼을 눌렀을때 변하고, 떼면 다시 원래의 상태(이미지)로 돌아간다. - 안드로이드의 셀렉트와 같다..(헛갈리기 쉽다..ㅡㅡ;)

2012년 3월 15일 목요일

[iOS] ASIHTTPRequest (아이폰 통신 API) 사용시 추가해야 할 프레임 워크

아이폰 통신 모듈에서 쓰이는 ASIHTTPRequest 를 사용시 반드시 다음의
FrameWork 들을 추가시켜야 한다. 그렇지 않으면 계속 에러 뿜는다.. ㅡㅡ;
(아마 Undefined symbols for architecture i386 혹은 ... i386 not found ....  뭐 이런류의 에러 메세지가 나올 것이다...)

<아래의 글에서 보면 - 퍼옴>
CFNetwork, SystemConfiguration, MobileCoreServices, CoreGraphics, libz.dylib
 이 다섯 녀석들이다...

2) Link with CFNetwork, SystemConfiguration, MobileCoreServices, CoreGraphics and zlib

Open the settings for your target by clicking on the blue bar at the very top of the Xcode sidebar:



Open the Build Phases tab, expand the box labeled Link Binary With Libraries then click the plus button.



Choose CFNetwork.framework from the list, and click Add:



Repeat the last two steps to add the following: SystemConfiguration.frameworkMobileCoreServices.framework,CoreGraphics.framework and libz.dylib.