既存WebページのiPhoneアプリ化における開発手法の研究
http://www.net.c.dendai.ac.jp/~nagatsuka/
Amazonで値引きされているグラビアDVDを自動で投稿するブログを作りました。
http://deskplate.net/gra/
WordPress + XHTML です。
まだテンプレートの主流はXHTMLが多いんですねー。
http://deskplate.net/gra/
WordPress + XHTML です。
まだテンプレートの主流はXHTMLが多いんですねー。
環境によって出るこのエラー。
global.file_exists(/lib/Ethna/class/Ethna_Util.php:73): [PHP] E_WARNING: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/Halgai_UrlHandler.php) is not within the allowed path(s):
in /Ethna/class/Ethna_Util.php on line 73
変更前)
if (file_exists($include_path . DIRECTORY_SEPARATOR . $path)) {
変更後)
if (@file_exists($include_path . DIRECTORY_SEPARATOR . $path)) {
これで解消
global.file_exists(/lib/Ethna/class/Ethna_Util.php:73): [PHP] E_WARNING: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/Halgai_UrlHandler.php) is not within the allowed path(s):
in /Ethna/class/Ethna_Util.php on line 73
変更前)
if (file_exists($include_path . DIRECTORY_SEPARATOR . $path)) {
変更後)
if (@file_exists($include_path . DIRECTORY_SEPARATOR . $path)) {
これで解消
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
btn.frame = CGRectMake(10, 10, 100, 30);
[btn setTitle:@"押してね" forState:UIControlStateNormal];
// ボタンがタッチダウンされた時にhogeメソッドを呼び出す
[btn addTarget:self action:@selector(hoge:) forControlEvents:UIControlEventTouchDown];
[self.view addSubview:btn];
hogeメソッドの定義
-(void)hoge:(UIButton*)button{
NSLog(@"%@", @"hoge");
}
-(void)hoge:(id)sender{
NSLog(@"%@", @"hoge");
}
この二つの処理は同じ
ピンチになったら (id)sender でいい? 厳密には違うだろうけど、、、
btn.frame = CGRectMake(10, 10, 100, 30);
[btn setTitle:@"押してね" forState:UIControlStateNormal];
// ボタンがタッチダウンされた時にhogeメソッドを呼び出す
[btn addTarget:self action:@selector(hoge:) forControlEvents:UIControlEventTouchDown];
[self.view addSubview:btn];
hogeメソッドの定義
-(void)hoge:(UIButton*)button{
NSLog(@"%@", @"hoge");
}
-(void)hoge:(id)sender{
NSLog(@"%@", @"hoge");
}
この二つの処理は同じ
ピンチになったら (id)sender でいい? 厳密には違うだろうけど、、、
こんな風にする
[appid]-ini.php
'dsn' => 'mysql://.../db1', // デフォルト
'dsn_db2' => 'mysql://.../db2',
'dsn_db3' => 'mysql://.../db3',
'dsn_appobject' => 'mysql://.../db1', // AppObject用
[appid]_Controller.php
var $db = array(
'' => DB_TYPE_RW,
'db2' => DB_TYPE_RO,
'db3' => DB_TYPE_RO,
'appobject' => DB_TYPE_RW,
);
各 AppObjectにプロパティ追加
/** @var string DB定義プレフィクス */
var $db_prefix = 'appobject';
[appid]-ini.php
'dsn' => 'mysql://.../db1', // デフォルト
'dsn_db2' => 'mysql://.../db2',
'dsn_db3' => 'mysql://.../db3',
'dsn_appobject' => 'mysql://.../db1', // AppObject用
[appid]_Controller.php
var $db = array(
'' => DB_TYPE_RW,
'db2' => DB_TYPE_RO,
'db3' => DB_TYPE_RO,
'appobject' => DB_TYPE_RW,
);
各 AppObjectにプロパティ追加
/** @var string DB定義プレフィクス */
var $db_prefix = 'appobject';