GameCenter Matchmaking 을 위한 Checklist
@required
1. 현재 user 인증
2. MatchMaking User Interface
3. Handle invitation from other user
@optional
1. Programmatcially Match find 코드 삽입
2. Advanced Match Making 코드 삽입
UIKIT_EXTERN NSString *NSStringFromCGPoint(CGPoint point); UIKIT_EXTERN NSString *NSStringFromCGSize(CGSize size); UIKIT_EXTERN NSString *NSStringFromCGRect(CGRect rect); UIKIT_EXTERN NSString *NSStringFromCGAffineTransform(CGAffineTransform transform); UIKIT_EXTERN NSString *NSStringFromUIEdgeInsets(UIEdgeInsets insets); UIKIT_EXTERN NSString *NSStringFromUIOffset(UIOffset offset);
NSLog(@"%f,%f,%f,%f,",rect.origin.x,rect.origin.y,rect.size.width,rect.size.height);
2011-11-24 15:29:40.397 App[9981:f803] -[AppView layoutSubviews],33th - currenctRect = {{14, 20}, {768, 1024}}
public Problem parseXML(XmlResourceParser xmlParser) throws Exception { Problem problem = new Problem(); String name = null; while (xmlParser.getEventType() != XmlPullParser.END_DOCUMENT) { if (xmlParser.getEventType() == XmlPullParser.START_TAG) { name = xmlParser.getName(); } else if (xmlParser.getEventType() == XmlPullParser.TEXT) { if (name == null) { Log.d("ProblemDAO-parseXML", "name is null ? error ??"); } } else if (xmlParser.getEventType() == XmlPullParser.END_TAG) { name = null; } xmlParser.next(); } return problem; }
if(name.equalsIgnoreCase("title") == true) { }위와 같은 코드의 문제점은 if/elseif/elseif 지옥이 나타난다는것이죠. :(
char[] stringArray = name.toCharArray(); stringArray[0] = Character.toUpperCase(stringArray[0]); String methodName = "set"+ new String(stringArray); try { Method m = Problem.class.getMethod(methodName, String.class); m.invoke(problem, text); } catch (SecurityException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); Method m = Problem.class.getMethod(methodName,Integer.class); m.invoke(problem,Integer.valueOf(text)); }
facebook sdk 의 github 소개페이지
UIPickerView *pickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(0, 0, 160, 100)]; [pickerView setDataSource:self]; [pickerView setDelegate:self]; [self.view addSubview:pickerView]; [pickerView release];
iOS 4.3 Simulator
iOS5 Simlurator
해당 Tutorial 은 OSX Lion 기준으로 작성되었습니다.
OSX Snow Leopard 나 Linux도 별반 다르진 않을것 같습니다 :)
* 타 OS 를 사용하는 경우 Python 설치가 필요합니다. ( 생략 )
2. Django Sample for google app engine Download
http://code.google.com/p/google-app-engine-samples/downloads/detail?name=django_example_20080409.tar.gz
* 환경 변수 설정.
sdk 에 있는 것들을 사용하여, app upload 등을 하기 때문에, 환경 변수를 세팅하여 편리하게 사용합니다.
12 PATH=$PATH:/Users/taehoonkoo/workspaces/work_django/env/google_appengine
1 application: geekbaordtest
2 version: 1
3 runtime: python
4 api_version: 1
$> appckfg.py update ./
관련 mail thread http://groups.google.com/group/areciboapp/browse_thread/thread/7d5859a06ae2e0ce?pli=1
Query query = getManager().newQuery(Notice.class); query.setOrdering("key desc");
query.setOrdering("key desc, name desc");