살군의 보조기억 장치

Another memory device…

Archive for the ‘iOS’ Category

APNS setting & tips

leave a comment »

  1. 인증서 생성
  2. 웹 계정에서 설정 및 인증서 사용법: 애플 아이폰 푸시알림 서비스 (APNS, Apple Push Notification Service)
  3. 클라이언트(아이폰) 셋팅: [iPhone/Java] 내가 만든 어플에 Push Notification 적용하기
  4. 기타 총집합
  5. 다양한 팁들: 아이폰 OS 개발 자료 총정리
Advertisements

Written by gomiski

2011/09/14 at 12:56 pm

Posted in iOS, Java, Lecture, tomcat

Discussion about “retain” and “assign”

leave a comment »

objective c 101 (retain vs assign) NSString is a good discussion which I need to read. I still confuse of what is difference copy, assign, and etc. About Memory Management, which is apple’s official document, is another good article who might not exactly understand memory management of iOS.

Written by gomiski

2011/09/03 at 5:06 am

Posted in iOS, Lecture

iOS coding tips

leave a comment »

Written by gomiski

2011/09/02 at 10:40 am

Posted in iOS, Lecture

iOS (iPhone / iPad) icon setting

leave a comment »

It a bit tricky that how to set up icons for iPhone and iPad on xcode. This page shows exactly how I do for icon, for example resolution(size), naming policy, and so on.

Q: How are the icon files in my application bundle used on iPad and iPhone?

apple document: Custom Icon and Image Creation Guidelines

Written by gomiski

2011/09/01 at 3:34 pm

Posted in iOS, Lecture

How to see a variable contents on xcode

leave a comment »

Simply you can use “po” command on debug screen. For instance,

po [tableViewData objectAtIndex:indexPath.row]

works well.

Written by gomiski

2011/08/29 at 12:57 am

Posted in iOS, Lecture

AdHoc 배포 삽질중…

leave a comment »

배포판을 생성해 볼려고 오만가지 일을 다 하고 난 다음에 archive 에서 share…를 하니 이런 이상한 결과가 나왔다. 다양한 해결책이 있는데… 아마 내게 맞는 해결책은 이것인듯 하다. 나도 타임머신에서 복구한 시스템이기 때문이다.

error message

error message

그래서… 찾아본 결과… 요 답이 맞는거 같다.

After much frustration, I filed a developer support request with Apple. The technician I spoke with was able to save my archive as an .ipa on her computer — the exact same archive that I was not able to save on mine, which pointed to a possible bug in my system (and from the sounds of it, many other people’s).

She recommended that I uninstall and reinstall XCode and the developer tools, and that worked!

Here were her uninstall instructions:

  • Make sure that your machine is running the latest Mac OS X (10.6.7) and iTunes.
  • Run the following command in the Terminal application to uninstall your SKD: sudo <Xcode>/Library/uninstall-devtools --mode=all (where <Xcode> is the path to the directory that contains your SDK.)
  • Drag your <Xcode> to the trash and restart your machine
  • Re-download and install Xcode (4.0.2) from the iOS Dev Center. Make sure that the System Tools, UNIX Development, Essentials packages in the Custom Install pane are selected before installing it.
-------------replies------------------------------

I got this error too after restoring my system from a time machine backup. This answer led me in the right direction. Thanks – Mike Akers May 26 at 5:58

I got this error too. I hadn’t selected to install the UNIX development tools when installing XCode4. I reinstalled XCode4 (without uninstalling), this time with all options selected, and it fixed the problem. Thanks! – William Denniss Jun 13 at 10:24

This also happens if you install pre-release versions of XCode in a different directory, and then subsequently remove them (because you now realize you should not have put it on a production machine 🙂 ) A reinstall (or, strangely, in my case… 2) takes care of the problem. – mmc Jun 28 at 17:07

 
---------------------------------- 8/9/2011 update -------------------------------------------------
역시나... xcode를 재설치 했더니 저장이 잘 된다. 이제 배포해서 테스트 해봐야 되는데... 어디서 배포하지? ㅋㅋ

retrieved from: http://stackoverflow.com/questions/5838409/xcode-4-archive-ipa-error-the-operation-couldnt-be-completed-no-such-file-or

Written by gomiski

2011/08/06 at 1:31 am

Posted in iOS, Lecture

iOS 에서 그림자 넣기

leave a comment »

지난번의 그림 가장자리 잘라내기에 이어 이번에는 그림자 넣기가 되겠다.

소스코드는…

http://nachbaur.com/blog/fun-shadow-effects-using-custom-calayer-shadowpaths

http://stackoverflow.com/questions/3316424/cant-add-a-corner-radius-and-a-shadow

 

위 두페이지를 참고했다. 원래 의도는 동그랗게 잘라낸 부분에 그림자를 넣는건데… 이건 아직 제대로 구현하지 못했다. 하지만 이 두 글을 참고하면, 어째어째 만들어 낼 수 있을것 같단 느낌이 든다. 실제로 두번째 글은 딱 내가 묻는 질문에 대한 답인데… 똑같이 해보니, 그림자의 가장자리가 동그랗게 잘릴 뿐 앞쪽에 그림은 사각형으로 나오는 문제가 생긴다.

그림의 가장자리를 둥글게 하면서 그림자까지 제대로 나오게 하는 방법을 알고 있으신 분은 링크 부탁합니다.

 

Written by gomiski

2011/07/31 at 3:25 pm

Posted in iOS, Lecture