UITextView就像iPhone Notes应用程序一样 [英] UITextView like iPhone Notes application
本文介绍了UITextView就像iPhone Notes应用程序一样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试重新创建Notes应用程序。到目前为止,我得到以下内容:
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];
我不知道的是他们如何将日期放在头顶上(如标题)在UIScrollView中很明显)。同样在每个文本下面都有一行来自哪里。
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?
推荐答案
这篇关于UITextView就像iPhone Notes应用程序一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文