12月 10
iPhone を横方å‘ã«å›žè»¢ã•ã›ãŸæ™‚ã«æ¤œçŸ¥ã™ã‚‹æ–¹æ³•ã®ãƒ¡ãƒ¢ã§ã™ã€‚
-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)FromInterfaceOrientation {
if(FromInterfaceOrientation == UIInterfaceOrientationPortrait){
// 横å‘ã
} else {
// 縦å‘ã
}
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
ç¶šãã‚’èªã‚€ »
12月 08
iPhone アプリã§è¦å‘Šç”»é¢ã‚’表示ã•ã›ã‚‹æ–¹æ³•ã§ã™ã€‚
è¦å‘Šç”»é¢ã‚’表示ã™ã‚‹
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Alert Test"
message:@"Message!!\nThis is Alert Test."
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"One", @"Two", nil];
[alert show];
[alert release];
ç¶šãã‚’èªã‚€ »
12月 08

自宅㮠Windows マシンã§ã¯ Picasa ã§ãƒ‡ã‚¸ã‚«ãƒ¡å†™çœŸã‚’管ç†ã—ã¦ã„ã¾ã™ã€‚写真データ㯠LAN 内㮠NAS ã«ã™ã¹ã¦å…¥ã‚Œã¦ä¿å˜ã—ã¦ã„ã‚‹ã®ã§ã™ãŒã€æ˜¨æ—¥è³¼å…¥ã—㟠IdeaPad ã« Picassa をインストールã—ãŸã¨ãã« NAS ã®å†™çœŸã‚’ã©ã†ã‚„ã£ã¦ç®¡ç†ã•ã›ã‚‹ã®ã‹ã‚’失念ã—ã¦ã—ã¾ã„ã€ã—ã°ã‚‰ã色々ã¨èª¿ã¹ãŸã®ã§å¾Œã€…ã®ãŸã‚ã®ãƒ¡ãƒ¢ã§ã™ã€‚
ç¶šãã‚’èªã‚€ »
12月 07
奥ã•ん用㫠Lenovo ã® IdeaPad S10e を購入ã—ã¾ã—ãŸã€‚ã‚‚ã†5å¹´ã‚‚åŒã˜ ThinkPad を使ã£ã¦ã„ãŸã®ã§ãã‚ãã‚ã„ã„åŠ æ¸›è²·ã„æ›¿ãˆã‚ˆã†ã¨å‰ã€…ã‹ã‚‰è©±ã—ã¦ã„ã¾ã—ãŸã€‚用途ã¨ã—ã¦ã¯ãƒ–ラウジングã¨ãƒ¡ãƒ¼ãƒ«ã€iTunes ã§éŸ³æ¥½ã‚’è´ããらã„ã—ã‹ã—ãªã„ã®ã§ãƒãƒƒãƒˆãƒ–ックã§ã„ã„ã‚“ã˜ã‚ƒãªã„ã‹ã¨ã‚¢ãƒ‰ãƒã‚¤ã‚¹ã—ã¦ã„ã¾ã—ãŸã€‚本人ã¯è‰²ãŒã‹ã‚ã„ã‘れã°ãれã§ã„ã„ã¨ã„ã†ã®ã§ã€ç™½ã„ EePC ã¨ã‹ãŒã„ã„ã‹ãªã¨æ€ã£ã¦ã„ãŸã®ã§ã™ãŒã€å…ˆæ—¥ãƒ‹ãƒ¥ãƒ¼ã‚¹ã§ãƒ¬ãƒŽãƒœãŒãƒãƒƒãƒˆãƒ–ックを出ã™ã“ã¨ã‚’知りã€Mac を購入ã™ã‚‹ã¾ã§ã¯ ThinkPad ファンã ã£ãŸç§ã¨ã—ã¦ã¯ã™ã”ã„æ°—ã«ãªã£ã¦ã„ã¾ã—ãŸã€‚
ç¶šãã‚’èªã‚€ »
12月 05
ç”»é¢ã«è¡¨ç¤ºã•れãŸç”»åƒã‚’指ã§ãƒ‰ãƒ©ãƒƒã‚°ã™ã‚‹æ–¹æ³•ã§ã™ã€‚
UIImageView クラスを継承ã—㟠DragView クラスを作æˆã™ã‚‹ã€‚
@interface DragView : UIImageView {
CGPoint startLocation;
}
@end
@implementation DragView
- (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
{
startLocation = [[touches anyObject] locationInView:self];
[[self superview] bringSubviewToFront:self];
}
- (void) touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event
{
CGPoint pt = [[touches anyObject] locationInView:self];
CGRect frame = [self frame];
frame.origin.x += pt.x - startLocation.x;
frame.origin.y += pt.y - startLocation.y;
[self setFrame:frame];
}
@end;
ç¶šãã‚’èªã‚€ »
12月 04
以å‰ã‹ã‚‰èªã¿ãŸã‹ã£ãŸã€ŒThe iPhone Developer’s Cookbookã€ã‚’購入ã—ã¾ã—ãŸã€‚ãªãœã‹ã‚¢ãƒžã‚¾ãƒ³ã§è³¼å…¥ã§ããªããªã£ãŸã‚Šã€äºˆç´„販売ã«ãªã£ãŸã‚Šã¨ä¸æ€è°ãªæœ¬ã§ã™ãŒã€å…ˆæ—¥é•ã†æœ¬ã‚’購入ã—よã†ã¨ã—ãŸã¨ãã«ã€è³¼å…¥å¯èƒ½ã ã£ãŸã®ã§æ€¥ã„ã§è³¼å…¥ã—ã¾ã—ãŸã€‚今見ãŸã‚‰ã¾ãŸäºˆç´„販売ã«ãªã£ã¦ã„ãŸã€‚
ç¶šãã‚’èªã‚€ »
12月 03
iPhone ã§ã¯ NSXMLDocument ãŒã‚·ãƒ¥ãƒŸãƒ¬ãƒ¼ã‚¿ã§ã¯å‹•作ã™ã‚‹ãŒå®Ÿæ©Ÿã§ã¯å‹•作ã—ãªã„ãã†ãªã®ã§ã€NSXMLParser を使用ã—ã¦è§£æžã—ã¦ã¿ã¾ã—ãŸã€‚
è§£æžã—ãŸã®ã¯ä¸‹è¨˜ã®ã‚ˆã†ãª XML ã§ã™ã€‚
<?xml version="1.0" encoding="UTF-8"?>
<users>
<user name="hoge" age="20" />
<user name="fuga" age="30" />
</users>
ç¶šãã‚’èªã‚€ »
12月 03
PHP ã® flock 関数を数年ã¶ã‚Šã«ä½¿ç”¨ã—ãŸã®ã§ã™ãŒã€ã™ã”ã„勘é•ã„ã‚’ã—ã¦ã„ã¾ã—ãŸã€‚DB を使用ã™ã‚‹ã‚ˆã†ã«ãªã£ã¦ã‹ã‚‰ã„ã†ã‚‚ã®ã‚ã£ãりファイルãƒãƒƒã‚¯ãªã©ä½¿ã‚ãªããªã£ã¦ã„ãŸã®ã§ã€‚。。(言ã„訳ã§ã™^^)
ç¶šãã‚’èªã‚€ »
12月 02
11月ã«èªã‚“ã æœ¬ã¯å…¨éƒ¨ã§14冊ã§ã—ãŸã€‚èªã‚“ã§ãªã„本ãŒçµæ§‹ãŸã¾ã£ã¦ãã¦ã„ã‚‹ã®ã§å°‘ã—ペースをã‚ã’ã¦èªã‚“ã§ã„ã“ã†ã¨æ€ã„ã¾ã™ã€‚
岡田元監ç£ã®ã€Œé ‘固力ã€ã¯é˜ªç¥žãƒ•ァンã¨ã—ã¦ã¯é¢ç™½ã‹ã£ãŸã§ã™ã。5年間ã®é‡‡é…ã§è‰²ã€…ã¨è¨€ã‚れã¦ããŸã“ã¨ã«å¯¾ã—ã¦ã®æ€ã„を出ã—ã¦ã„る感ã˜ã§ã™ã€‚
ç¶šãã‚’èªã‚€ »
12月 02
iPod touch 2.0 ã‹ã‚‰è„±ç„ã—ãªã„ã§ã‚‚ã‚¹ã‚¯ãƒªãƒ¼ãƒ³ã‚·ãƒ§ãƒƒãƒˆãŒæ’®ã‚Œã‚‹ã‚ˆã†ã«ãªã‚Šã¾ã—ãŸã€‚撮り方ã¯ã‚¹ãƒªãƒ¼ãƒ—ボタンを押ã—ãªãŒã‚‰ãƒ›ãƒ¼ãƒ ボタンを押ã™ã ã‘ã§ã™ã€‚一瞬画é¢ãŒç™½ãフラッシュã—ã¦æ’®ã‚‰ã‚ŒãŸã“ã¨ãŒåˆ†ã‹ã‚Šã¾ã™ã€‚
ç¶šãã‚’èªã‚€ »
Recent Comments