UITableViewCellにUIButtonを配置したけど、タップしても反応しないっていう時があります
しかし、なぜか反応するときもあります 謎です
色々調べると、解決方法はいくつかあるみたいだけど、一番簡単な方法はこれ
http://paranishian.hateblo.jp/entry/objc/ios7-tableviewcell
実にスマート!
2014年3月26日水曜日
【iOS】Auto Layoutのお話
iPhone4以前とそれ以降では画面のサイズが違うから、
xibの2種類いるんじゃね?って思ってたけどそんなことなかった
xibのinspectorでauto sizingを設定すれば、レスポンシブな感じにできるんだけど、
auto sizingの設定項目がない!ってときにはこれを確認
http://dev.classmethod.jp/references/ios-7-xcode-5-auto-layout-2/
xibの2種類いるんじゃね?って思ってたけどそんなことなかった
xibのinspectorでauto sizingを設定すれば、レスポンシブな感じにできるんだけど、
auto sizingの設定項目がない!ってときにはこれを確認
http://dev.classmethod.jp/references/ios-7-xcode-5-auto-layout-2/
Use AutoLayoutのチェックを外すと出てきます
2014年2月20日木曜日
【cookie】webサイトからcookieを受け取る方法
cookieってなんとなく分かってたつもりだけど
詳しく知らなかった…
webサイトにPOSTして返ってきたcookieを保存したりする方法
http://www.yoheim.net/blog.php?q=20130701
cookieを返すかどうかの設定はサイト側で行えば良いんだと思う
あと、cookie使うメリットは、最初に認証してそのときに貰ったcookieを使えば、
2回目以降の認証をする必要がないってこと
「あー、cookieね、はいはい、で、なんだっけ?」
みたいな感じから少しレベルアップした気がした
詳しく知らなかった…
webサイトにPOSTして返ってきたcookieを保存したりする方法
http://www.yoheim.net/blog.php?q=20130701
cookieを返すかどうかの設定はサイト側で行えば良いんだと思う
あと、cookie使うメリットは、最初に認証してそのときに貰ったcookieを使えば、
2回目以降の認証をする必要がないってこと
「あー、cookieね、はいはい、で、なんだっけ?」
みたいな感じから少しレベルアップした気がした
2014年2月4日火曜日
リジェクト…
一回目の審査でリジェクトされました
These examples identify types of issues discovered in your app but may not represent all such issues. It would be appropriate to thoroughly evaluate your app to address these types of issues.
[追記]
http://sarudeki.jp/arudente/2012/09/26/apple-リジェクト-(reject)まとめ一覧/
[追記]
なんか、18.2に関しては以下のサイトに載ってるやつと一緒ぽい
解決できるかなあ
https://support.tapatalk.com/threads/need-some-help-with-getting-my-app-approved.17350/
http://stackoverflow.com/questions/16456351/app-store-rejection-18-2
[追記]
こっち見たらいけそうな気がしてきた
http://neoinspire.net/archives/336#.UvCJi3l6ois
- 10.6: Apple and our customers place a high value on simple, refined, creative, well thought through interfaces. They take more work but are worth it. Apple sets a high bar. If your user interface is complex or less than very good it may be rejected
- 18.2: Apps that contain user generated content that is frequently pornographic (ex "Chat Roulette" apps) will be rejected
- 22.2: Apps that contain false, fraudulent or misleading representations will be rejected
10.6
We found the following issues with the user interface of your app:
- Did not include iOS features. For example, it would be appropriate to use native iOS buttons and iOS features other than just web views, Push Notifications, or sharing.
We found the following issues with the user interface of your app:
- Did not include iOS features. For example, it would be appropriate to use native iOS buttons and iOS features other than just web views, Push Notifications, or sharing.
以下、Google翻訳
IOS機能が含まれていませんでした。たとえば、ネイティブのiOSのボタンを使用することが適切であろうとiOSは単なるウェブ景色以外の他の機能、プッシュ通知、または共有。
IOS機能が含まれていませんでした。たとえば、ネイティブのiOSのボタンを使用することが適切であろうとiOSは単なるウェブ景色以外の他の機能、プッシュ通知、または共有。
These examples identify types of issues discovered in your app but may not represent all such issues. It would be appropriate to thoroughly evaluate your app to address these types of issues.
[追記]
http://sarudeki.jp/arudente/2012/09/26/apple-リジェクト-(reject)まとめ一覧/
[追記]
なんか、18.2に関しては以下のサイトに載ってるやつと一緒ぽい
解決できるかなあ
https://support.tapatalk.com/threads/need-some-help-with-getting-my-app-approved.17350/
http://stackoverflow.com/questions/16456351/app-store-rejection-18-2
[追記]
こっち見たらいけそうな気がしてきた
http://neoinspire.net/archives/336#.UvCJi3l6ois
2014年1月31日金曜日
2014年1月27日月曜日
【iOSアプリ】アプリの審査待ちでそわそわしたら
以下のサイトで審査の込み具合が確認できるみたい
・Apple公式ページ
https://developer.apple.com/news/
・世界中のアプリ開発者から自己申告されたレビュー日数を元に平均日数を算出してくれるサービス…らしい (Qiitaより)
http://reviewtimes.shinydevelopment.com
5営業日以内に審査始まるってこと?
・Apple公式ページ
https://developer.apple.com/news/
・世界中のアプリ開発者から自己申告されたレビュー日数を元に平均日数を算出してくれるサービス…らしい (Qiitaより)
http://reviewtimes.shinydevelopment.com
5営業日以内に審査始まるってこと?
2014年1月26日日曜日
【スクレイピング】webサイトからデータをパクってくる
・スクレイピングするライブラリ
結局は<td class = ~~>とか<div img=~~>の~~の部分しか取って来れなくて、
タグとタグの間の文字をとれなかった
http://d.hatena.ne.jp/laiso+iphone/20120715/1342350160
・webサイトのhtmlをダウンロードして、innerhtmlを解析する
https://github.com/acoomans/WebScraper
タグとタグのデータをとる方法
HTMLParserを使って 解析する
結局は<td class = ~~>とか<div img=~~>の~~の部分しか取って来れなくて、
タグとタグの間の文字をとれなかった
http://d.hatena.ne.jp/laiso+iphone/20120715/1342350160
・webサイトのhtmlをダウンロードして、innerhtmlを解析する
https://github.com/acoomans/WebScraper
タグとタグのデータをとる方法
HTMLParser *parser = [[HTMLParser alloc] initWithString:htmlstring error:&error];if (error) {//NSLog(@"Error: %@", error);return;}
HTMLNode *bodyNode = [parser body];NSArray *inputNodes = [bodyNode findChildTags:@"div"];//divタグの物を全部とってくるitem = [[NSMutableDictionary alloc]init];int appendCount = 0;for (HTMLNode *inputNode in inputNodes) {if([[inputNode getAttributeNamed:@"class"] isEqualToString:@"name"]){//そのなかでclass属性がnameの物にしぼる。homeTeam = [[NSString alloc]init];homeTeam = [inputNode contents];homeTeam = [homeTeam stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];[item setObject:homeTeam forKey:@"home"];appendCount++;}
HTMLParserを使って 解析する
登録:
投稿 (Atom)


