Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一番上への自動スクロールを無効にしたい。両方試してみました
tableview.scrollsToTop=NO; [tableview setScrollsToTop:NO];
しかし、それはうまくいきません。
ありがとう
自動スクロールコードはtableViewControllerにあるため、自動スクロールを無効にすることはできません。UITableViewControllerからサブクラス化する代わりに、UIViewControllerからサブクラス化して、その中でtableViewを使用できます。
UITableViewController自体を使用する場合は、viewWillAppearをオーバーライドして、[superviewWillAppear]を呼び出さないでください。