Post

Replies

Boosts

Views

Activity

Reply to Is there a way to translate touches to screen coordinates
If you find the topmost view (calling superview repeatedly) then let touchLocationAbsolute = touch.location(in: topMostView) will give you what you are looking for. To find the topmost, I would do something like this : var topMostView = myGV.guessBar var upperView = myGV.guessBar while upperView != nil { topMostView = upperView! upperView = topMostView!.superview } let touchLocationAbsolute = touch.location(in: topMostView)
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’21
Reply to Attachment in UITextView
If you want to add inside the text, you should use attributedString and NSTextAttachment: See example here: https : / / w w w.hackingwithswift. com/example-code/system/how-to-insert-images-into-an-attributed-string-with-nstextattachment
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’21
Reply to Having very serious doubts regarding User Interface of my first app.
The review guidelines require that your app offer enough functionality in all cases. Even though no one can tell for sure what the review board decision will be, it seems that making all the content of the app unaccessible until user has subscribed can be a cause of rejection. You'd probably better propose a simple plan (4 days for instance) and let user buy more plans.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’21
Reply to Deleting Forum Posts
If you want to delete a post for some other reason then… well… what’s the reason? Sometimes, I can post a question or an answer and then realise it is nonsense. Or because of some recent strange forum behavior (messages seem to disappear for a few minutes then suddenly reappear after verification - not really WYSIWIG at all), I may post the question again… and then notice it is a duplicate. Sure I can edit it and just write : this post has been deleted! But, if no one answered yet, it would be just better to simply remove it. That was possible in the former forum…
Jun ’21
Reply to Attachment in UITextView
Can I make something like 'cell', which will be shows attachment like on attached image? So, that's not a question about UITextView. To get this, just define a custom cell. In its nib, you will position label(s) and image, at the exact position you wish.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’21
Reply to Resources for getting started
With those books, I advise you to start learning in playgrounds. That's a very interactive way to learn Swift and the basics of Xcode. Once you feel comfortable, you will learn to develop real apps, and learn UIKit or SwiftUI. Wish you a good and enjoyable start.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’21