开发者

Objective c. How to remove scroll bar from textarea?

开发者 https://www.devze.com 2023-04-11 19:22 出处:网络
I need a little help here. I made pretty simple app for my iPad with only one text area (by using Text Field object) on background image. I placed some poem in this t开发者_开发知识库ext field but th

I need a little help here. I made pretty simple app for my iPad with only one text area (by using Text Field object) on background image. I placed some poem in this t开发者_开发知识库ext field but this poem is more longer than iPas's screen so after running my app I was able to scroll down my poem. Now, I want to remove a little grey scroll bar that appears when I scrolling my poem. Where should I look for an answer? Thank you.


You're probably using a UITextView which extends UIScrollView, so you can use its showsVerticalScrollIndicator property:

- (void)viewDidLoad {
    [super viewDidLoad];
    poemView.showsVerticalScrollIndicator = NO;
}

(assuming your text view is an instance variable/outlet of your view controller)


In main storyboard you can find attributes inspector,

there you can disable "Shows vertical indicator"

Objective c. How to remove scroll bar from textarea?


Remove Gray UITableView Index Bar

That "scroll bar" is your index bar.

Return nil from sectionIndexTitlesForTableView: and it'll go away.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号