开发者

is there any method to get the row and column number in a uitextview

开发者 https://www.devze.com 2023-02-25 21:04 出处:网络
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

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,开发者_如何学JAVA40,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 :)

0

精彩评论

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

关注公众号