구글링을 통해 찾아냈다.
거의 예전 버전밖에 없어서 고생..

실행기반은 Xcode 3.2.4 iPhone 4.1

인증서 만들기

  1. Open up Keychain Access in Applications>Utilities.
  2. Go to Keychain Access>Certificate Assistant>Create a Certificate.
  3. For ‘Name’, type: iPhone Pwned Developer
  4. For ‘Identity Type’, leave it as ‘Self Signed Root’.
  5. For ‘Certificate Type’, choose ‘Code Signing’.
  6. Check the box for ‘Let me override defaults’.
  7. Click on Continue, and in the popup box that comes up.
  8. Type in any number under ‘Serial Number’.
  9. Leave ‘Validity Period (days)’ alone.
  10. Click on Continue.
  11. Fill in the details with whatever you want (not really necessary).
  12. Click on Continue.
  13. Click on Continue for the rest of the dialog boxes.

Xcode 설정

  1. Open /Developer/Platforms/iPhoneOS.platform/Info.plist with Property List Editor.
  2. Look for all ‘XCiPhoneOSCodeSignContext’ VALUES. Replace that with ‘XCCodeSignContext’. There should be two or three to replace.
  3. Save the file.
  4. Restart Xcode, and build your app for a device.

Open up your project settings in Xcode (Project>Edit Project Settings), go to the Build tab, and under ‘Code Signing’, extend ‘Code Signing Identity’, and choose ‘iPhone Pwned Developer’, which should be the name of the certificate you just made above.

스샷은 필요없지 싶다.
버전하나 올라갈때마다 화면이 바껴서 크게 소용없을듯..

Posted by 김반장78
,
우회해서 짜는 방법이 여렀있었으나 가장 마음에 든건..
CardLayout 활용

....
Container ct;

CardLayout card;
JPanel card1;
JPanel card2;

ct.add(card1, "card1");
ct.add(card2, "card2");

card.show(ct, "card1");
....




Posted by 김반장78
,

#import "AddCityController.h"

#import "CityGuideDelegate.h"

#import "RootController.h"

#import "City.h";


@implementation AddCityController


#pragma mark ViewController Methods


- (void)didReceiveMemoryWarning {

// Releases the view if it doesn't have a superview.

    [super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren't in use.

}


- (void)viewDidLoad {

self.title = @"New City";

self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSave target:self action:@selector(saveCity:)];

cityPicture = [UIImage imageNamed:@"QuestionMark.jpg"];

pickerController = [[UIImagePickerController alloc] init];

pickerController.allowsEditing = NO;

pickerController.delegate = self;

pickerController.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;


}


- (void)viewDidUnload {

// Release any retained subviews of the main view.

// e.g. self.myOutlet = nil;

}



- (void)dealloc {

[tableView release];

[nameCell release];

[pictureCell release];

[descriptionCell release];

[pickerController release];

    [super dealloc];

}


#pragma mark Instance Methods

- (void)saveCity:(id)sender {

CityGuideDelegate *delegate = (CityGuideDelegate *)[[UIApplication sharedApplication] delegate];

NSMutableArray *cities = delegate.cities;

UITextField *nameEntry = (UITextField *)[nameCell viewWithTag:777];

UITextView *descriptionEntry = (UITextView *)[descriptionCell viewWithTag:777];

if ( nameEntry.text.length > 0 ) {

City *newCity = [[City alloc] init];

newCity.cityName = nameEntry.text;

newCity.cityDescription = descriptionEntry.text;

newCity.cityPicture = cityPicture;

[cities addObject:newCity];

RootController *viewController = delegate.viewController;

[viewController.tableView reloadData];

}

[delegate.navController popViewControllerAnimated:YES];

}


- (IBAction)addPicture:(id)sender {

UITextField *nameEntry = (UITextField *)[nameCell viewWithTag:777];

[nameEntry resignFirstResponder];

[self presentModalViewController:pickerController animated:YES];

}


#pragma mark UIImagePickerController Methods


- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {

[self dismissModalViewControllerAnimated:YES];


cityPicture = [info objectForKey:@"UIImagePickerControllerOriginalImage"];

UIImageView *pictureView = (UIImageView *)[pictureCell viewWithTag:777];

pictureView.image = cityPicture;

[tableView reloadData];

}


#pragma mark UITableViewDataSource Methods


- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath {

UITableViewCell *cell = nil;

if( indexPath.row == 0 ) {

cell = nameCell;

} else if ( indexPath.row == 1 ) {

UIImageView *pictureView = (UIImageView *)[pictureCell viewWithTag:777];

pictureView.image = cityPicture;

cell = pictureCell;

} else {

cell = descriptionCell;

}

return cell;

}


- (NSInteger)tableView:(UITableView *)tv numberOfRowsInSection:(NSInteger)section {

return 3;

}


#pragma mark UITableViewDelegate Methods


- (CGFloat)tableView:(UITableView *)tv heightForRowAtIndexPath:(NSIndexPath *)indexPath {

CGFloat height;

if( indexPath.row == 0 ) {

height = 44;

} else if( indexPath.row == 1 ) {

height = 83;

} else {

height = 279;

}

return height;

}


@end


Posted by 김반장78
,

보고 재미있는거만 남길 생각이였는데 미묘..


걍 영어공부와 시간때우기로는 적당할지도 
2편은 왠지 조금 기대..

'취미' 카테고리의 다른 글

[영화] 시라노 연애조작단  (0) 2011.02.04
[게임] 스타크레프트2 이정훈  (0) 2010.12.07
[게임] 몬스터헌터3rd 포터블  (0) 2010.12.06
메이지 신궁 산보..  (0) 2010.12.06
시금치  (0) 2010.11.21
Posted by 김반장78
,

위 사진처럼 시뮬레이터 버전 수정해 주면 된다.

맥에서는 티스토리 사진 안올라가 지더니 갑자기 되네 고친건가..,
조금더 편하게 블로깅 할수 있을듯 ㅋ
Posted by 김반장78
,

시금치

취미 2010. 11. 21. 11:02


눈부시게 자라는 시금치들 ㅋㅋ
근데 가운데 있는 녀석은 먼지?

'취미' 카테고리의 다른 글

[영화] 시라노 연애조작단  (0) 2011.02.04
[게임] 스타크레프트2 이정훈  (0) 2010.12.07
[게임] 몬스터헌터3rd 포터블  (0) 2010.12.06
메이지 신궁 산보..  (0) 2010.12.06
[리뷰] 라스트 에어벤더  (0) 2010.11.23
Posted by 김반장78
,

한국에서 책이 도착했다

조금 읽어 봤는데 연습하면서 느낀점이 바로 나오더라는..
책은 잘산거 같다
일년에 한두권 사는 책이 참고서 아니면 학습서이니..ㅡ.ㅡ
Posted by 김반장78
,

<SCRIPT LANGUAGE="JavaScript">
function zipcodeCheck(form) {
 var flag = form.frm.zipflag;
 if (flag.value == "2") {
  form.frm.adress.focus();
  form.frm.adress.value = form.frm.adress.value;
 } else if (flag.value == "1") {
  alert("郵便番号を確認");
  form.frm.post_front.focus();
 } else {
  form.frm.sex[0].checked = true;
  form.frm.bortype.checked = true;
  form.frm.name_family.focus();
 }
}
</SCRIPT>

<body onload="zipcodeCheck(this)">

어쩌다보니 자바스크립트를 하고 있다는..ㅡ.ㅡ
그래도 2~3년밖에 안됐는데 이렇게 기억이 안나다니..

주요 체크포인트는
1. 펑션 밖에서는 객체를 못불러온다
2. 버튼그룹의 경우 두개이상일때는 배열로 한개일 경우엔 객체로 매핑된다.

Posted by 김반장78
,