UITextView like iPhone Notes application

我怕爱的太早我们不能终老 提交于 2020-01-01 17:04:16

问题


I am trying to recreate the Notes application. So far I got the following:

    textView                 = [[UITextView alloc] initWithFrame:CGRectMake(25.0, 30.0, 295.0, 214.0)];
textView.delegate        = self;
textView.backgroundColor = [UIColor clearColor];
textView.font            = [UIFont fontWithName:@"MarkerFelt-Thin" size:19.0];  
[self.view addSubview:textView];

The thing I dont know is how they were able to put the date on top like a header (it is within the UIScrollView that is obvious). Also under every text there is a line where did that came from.

Does someone have an idea or a sample project I can take a look at?


回答1:


Look at this: Stuff you learn from reverse-engineering Notes.app



来源:https://stackoverflow.com/questions/2615841/uitextview-like-iphone-notes-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!