2012/06 29

iOS 6 Tip - Notification Center 에서 Twitter와 Facebook 을 쉽게 사용해보자

iOS 6 의 기능중 하나가 Notification Center에서 Twitter와 Facebook 사용 가능하다. 기본적으로 설정은 되어 있으나 가장 밑에 있어서 살짝 불편한 감이 있어서 가장 위로 위치 조정! 셋팅 -> Notifications -> Navigation Bar 의 오른쪽 Edit 버튼 선택 후.. 아래에 있는 Share Widget 을 가장 위에 아니면 편한 위치에 두면 된다. 그러면 노티피케이션 센터 가장 상단에 Twitter 와 Facebook 기능이 나타단다. :-) 끗

Mac & iOS Tip 2012.06.13

OS X 기본 shell 바꾸기

fish shell 로 바꾸고 뭔가 마음에 안들어서 shell을 다시 바꿀려고 하니 명령어가 뭐더라! chage shell 요놈인가 보다. 사용할수 있는 쉘 목록 보기 cat /etc/shells 쉘 바꾸기 chsh -s /bin/bash 암호를 물어보니 입력해주면 바뀐다. Steves-MacBook-Air% cat /etc/shells # List of acceptable shells for chpass(1).# Ftpd will not allow users to connect who are not using# one of these shells./bin/bash/bin/csh/bin/ksh/bin/sh/bin/tcsh/bin/zsh#/usr/local/bin/fish Steves-MacBook-Air..

iLife 2012.06.13

iOS Dev Tip code로 화면 밝기 조절

밤이나 너무 밝은 곳에서는 앱이 너무 밝거나 어두운 경우가 생긴다. 터치값 보고 위아래 움직이는 정도에 따라 밝기 조절. - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; CGPoint location = [touch locationInView:[touch view]]; previousPoint = location.y; } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; CGPoint location = [touch locationIn..

iDev 2012.06.10

torch, iPhone 플래쉬 활성화 code

간한하게 앱에 플레쉬 기능을 넣고 싶으면 아래 코드를..제스처에 스와잎 좌우 넣고 호출. UISwipeGestureRecognizer *swipeRecognizer; swipeRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(torchOn:)]; swipeRecognizer.direction = UISwipeGestureRecognizerDirectionLeft; [self.view addGestureRecognizer:swipeRecognizer]; swipeRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selecto..

iDev 2012.06.10

iOS 개발자 추천 툴 iConify

http://itunes.apple.com/kr/app/iconify/id416289784?mt=12 iConify Mac App Store 링크 iOS 개발하다보면 마지막으로 제일 귀찮은게 일일이 icon을 만들어 주는겁니다. 8종류의 크기로 만들어야 하죠. iConify는 512 x 512 size 의 이미지 하나를 던지기만 하면 알아서 8종류의 크기 이름을 만들어 줍니다.저같은 그래픽 툴맹, 컴맹에게는 정말 최고의 툴이죠. ㅠㅠb 가격도 무려!! 무료 입니다. dㅠㅠb

카테고리 없음 2012.06.10

한글 시계 for iOS + 주의점

http://web.suapapa.net:8080/wordpress/?p=493 수아파파님의 한글 시계 아두노이 버젼에서 영감를 얻고 iOS 용으로 만들어 보았습니다. 무료로 올릴 예정이며 소스도 자유롭게 사용하실수 있도록 공개 예정입니다. https://github.com/krazyeom/Word-Clock-Korean-Version-for-iOS 공개했습니다. 다만 아래 디자인과 관련된 사항은 QLOCKTWO® is a registered trademark of Biegert & Funk. The product is protected by international patents and designpatents.이런 내용이 있으니 피보기 싫으면 주의 하시는게 좋을듯합니다. ㅠㅠ + 추가 아래와 같은 공..

iDev 2012.06.10

cocos2d에서 implicit declaration of 'glColor4ub' is invalid in c99 해결방법

opengl 함수는 아에 모르다보니 그냥 대충 구글링해서 코딩을 (작년에...)했었는데 오늘 아침 cocos2d 1.0에서 2.0 으로 올리는 과정에서 또 뭔가 implicit declaration of 'glColor4ub' is invalid in c99워닝과 함께 화면상에서는 색깔이 표현이 안된다. 털썩. cocos2d 함수에 ccDrawColor4B(r, g, b, a); 이라는 훌륭한 메소드가 존재 한다.수정후 잘되네..요. - (void) draw{ glLineWidth(maxSize.height); glColor4ub(255, 255, 255, 255); // implicit declaration of 'glColor4ub' is invalid in c99 ccDrawColor4B(255, ..

iDev 2012.06.08

[OS X] fish shell 추천

http://ridiculousfish.com/shell/beta.html terminal로 shell 작업을 많이 하시는분께 추천 드리는 shell plugin(?) 입니다. 위 싸이트에서 패키지 받으셔서 설치후 fish로 활성화를 시켜줍니다. Interactively set your colors from a web page: fish_config Update man-page completions: fish_update_completions Make fish your default shell: chsh -s /usr/local/bin/fish 그러면 아래와 같이 타이핑을 치거나 아니면 Tab key를 누를 경우 auto completion 을 지원해줍니다. 저같이 머리가 나쁜놈에게는 딱이죠. ㅠㅠb 끗

iLife 2012.06.08

소스코드 복사 후 컴파일 시 Apple Mach-O Linker (Id) Error 해결방법

작년 이맘때쯤 cocos2d 1.0 으로 개발을 하다가 다시 2.0으로 업데이트를 하기 위해 프로젝트를 만들고 소스파일을 붙여넣는 과정에서 컴파일을 하니 아래와 같은 Apple Mach-O Linker (Id) Error 발생 바보 같이 구글링 할 생각을 안하고 파일을 새로 만들고 내용을 복사 붙여넣기 하는 무식한짓을...; @tedfromsky 님의 도움으로 문제 해결.파일의 Target Membership 이 체크 안되어 있어서 그랬다. 예전엔 이런 경우가 없었는데...Target Membership이 체크 안되면 소스코드 coloring도 활성화 안되는 듯하다. 오른쪽 메뉴의 Target Membership을 체크 한다. 체크전에는 소스코드의 coloring도 제대로 안되고 있다. Target Me..

iDev 2012.06.08

cocos2d mac에서 custom cursor 사용하기

cocos2d에서 커스텀 커서를 사용하는 방법을 그냥 mac app에서 커스텀 커서를 사용하는 방법 처럼 하면 잘 안되길래.. http://www.cocos2d-iphone.org/forum/topic/12523 찾음. CCGLView.m 에 아래코드 추가. -(NSCursor*) getCustomCursor{ if (_cursor==nil){ NSString *pathToSettingsInBundle = [[NSBundle mainBundle] pathForResource:@"cursor_normal" ofType:@"png"]; NSImage *crsrImage = [[NSImage alloc] initWithContentsOfFile:pathToSettingsInBundle]; _cursor = [..

iDev 2012.06.05