Re: dequeueReusableCellWithIdentifier bad performance in case of less number of cells?

2018-01-10 Thread Igor Ranieri Elland
Easiest way is to write both solutions and analyse them with Instruments. Best, ir > Am 10.01.2018 um 12:48 schrieb Devarshi Kulshreshtha > : > > I had a discussion with my colleagues regarding use > of dequeueReusableCellWithIdentifier, few of them are under

Re: Question about structs and enum placement in a project

2017-07-13 Thread Igor Ranieri Elland
If they’re not being declared inside another object, why not put them in their own files? > Am 13.07.2017 um 15:53 schrieb Eric E. Dolecki : > > Perhaps. Then maybe a folder of categorized structs and enums? I personally > dislike seeing them sprinkled throughout

Re: Attributed strings - and bounding rects

2017-03-03 Thread Igor Ranieri
Hi Peter. Have you tried also passing `usesLineFragmentOrigin` as one of the options? It works here. Here’s some code I’m currently using to achieve a similar effect: let sizeLimit = CGSize(width: 80.0, height: CGFloat.greatestFiniteMagnitude) let size = attrString.boundingRect(with:

Re: How to Open Dictionary

2016-09-02 Thread Igor Ranieri
You might want to look into UIReferenceLibraryViewController. That’s the class that presents the dictionary view for you, you can instantiate it with a term and present it to the user. Best, Igor > On 01 Sep 2016, at 15:09, Gerriet M. Denkmann wrote: > > I have an iOS

Re: iOS Hardware Keyboard Detection

2016-04-06 Thread Igor Ranieri Elland
I’ve been filing radars and complaining about this for almost 3 years now (since iOS7). So far the only way to detect if a hardware keyboard is present is through private APIs (and those only if a text view on text field is currently the first responder). If anyone has a good solution, I’d be