有没有什么方法可以获取 uitextview 中的行号和列号
我正在尝试实现一项任务,其中用户将像 iNotes.app 一样创建笔记,为此我必须从左侧给出一些填充,在我的情况下,填充比实际的 iNotes(app) 和问题稍多一些就是这样,如果我完成整行,它就会从视图/屏幕中消失,用户看不到。
为了解决这个问题,我首先使用了
UIEdgeInsetsMake(0,40,0,-40);
//this thing makes the content non-scrollable horizontaly
//but the text still goes out of screen
然后我使用了
UIEdgeInsetsMake(0,40,0,0);
//By doing this the content becomes horizontally
//scrollable and the content appear as per scrolling.
我不希望我的文本视图水平滚动,我希望它显示内容而不剪切任何内容。
请指导我应该做什么来解决这个问题 如果我的方法不对,请提出其他方法。提前致谢 :)
I am trying to achieve a task in which the user the will create notes just like iNotes.app, for this i have to give some padding from left, in my case the padding is little more than the actual iNotes(app) and the problem with this is, If I complete the whole line it goes out of view/screen and user cant see.
To solve this Issue I first I used
UIEdgeInsetsMake(0,40,0,-40);
//this thing makes the content non-scrollable horizontaly
//but the text still goes out of screen
Then I used
UIEdgeInsetsMake(0,40,0,0);
//By doing this the content becomes horizontally
//scrollable and the content appear as per scrolling.
I don't want my textview to scroll Horizontally and I want it to show the content without cutting anything.
Please guide my what should I do to tackle this problem and
If my approach is wrong please suggest any other way. Thanks in Advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论