UIWebViewでバウンス(bounce)をさせない方法。毎回、忘れてググッてるのでメモしとく!! for (id subview in webView.subviews) if ([[subview class] isSubclassOfClass: [UIScrollView class]]) ((UIScrollView *)subview).bounces = NO;元情報はこちら。 iphone - Stop UIWebView from "bouncing" vertically? - Stack Overflow http://stackoverflow.com/questions/500761/stop-uiwebview-from-bouncing-vertically
前回の目玉商品 [thumbScrollView setCanCancelContentTouches:NO]; もう、お試しになりましたか? デフォルトのYESだと、ずっとUIScrollView側も指の動きを監視し続けるみたいですね。 なので、こいつをNOで呼んでいないと、UIScrollViewに埋め込んだthumbViewをドラッグしようとしても、ちょっと指を動かしただけでUIScrollView側のフリックジェスチャとかドラッグとして取られてしまい、thumbViewには「オメーの出る幕じゃねえずら」とばかりにtouchesCancelledが飛んでくる・と。虎眼流の「流れ」なみに飛んで、ひつこいですか?そうですか... 埋め込みUIView側をドラッグ可能にする予定ならsetCanCancelContentTouches:NOを呼んでおけ、ちゅーことですな。 あと、NOを指定し
mobileSafariを使用しているときの、画面を切り替えるときに表示されるページが並んでいて横スクロールできるインタフェースを作るときのテクニックや、サンプルソースの在処色々。 貴重な情報でした。ご本人には告げずこっそりまとめていて、すみません。
[前回] Cocoaの日々: UIScrollView - ページスクロールで空白を挟む 前回のブログのコメントで KatokichiSoft さんから面白い情報をいただいた。 iPhone/iPad – AppStore like UIScrollView with paging and preview | blog.sallarp.com UIScrollView を使って AppStore のような画像表示をする方法について書かれている。サンプルをダウンロードして実行するとこんな感じ。 これはなかなかいい。真似してみよう。 clipsToBounds = NO ソースコードを読んでわかったポイントは次の2つ。 1. UIScrollView を画面より小さくする 2. UIScrollView.clipsToBounds = NO とする 1. は例えば 320x460 の画面の場合
Complete source code and sample application for creating an AppStore like scroll view with paging and preview using UIScrollView. YouTube demo video included!Do you like the way application images are displayed in AppStore or the way Safari flips between tabs? This post contains a complete horizontal, paged UIScrollView with preview control. Alexander Repty posted a sample on his blog and my samp
iOS/iPhone/iPad/MacOSX プログラミング, Objective-C, Cocoaなど 後々使いわしができるように UIViewController 内に実装していたコードを別のクラスへまとめた。 XCGalleryView 新しく XCGalleryView というクラスを作った。 @class XCGalleryView; @protocol XCGalleryViewDelegate -(NSInteger)numberViewsInGallery:(XCGalleryView*)galleryView; -(UIImage*)galleryImage:(XCGalleryView*)galleryView filenameAtIndex:(NSUInteger)index; @end @interface XCGalleryView : UIView <UIScr
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く