ArtSabintsev

Washington, DC

sabintsev.com

Age: 28

Lead Mobile Architect at ID.me

1d
comment How to reference a environment variable inside Obj-C code
Perfect answer - thanks!
Jan
21
comment Swift : '(NSObject, AnyObject)' does not have a member named 'subscript'
The nil coalescing operator: ?? is explained in detail in Apple's iBook. I can't seem to block-quote it in an SO comment, but here's a direct copy of what the book says: The nil coalescing operator (a ?? b) unwraps an optional a if it contains a value, or returns a default value b if a is nil. The expression a is always of an optional type. The expression b must match the type that is stored inside a. The nil coalescing operator is shorthand for the code below: a != nil ? a! : b
Jan
14
revised Hiding Package Name using Proguard but keeping certain Methods in a class public
deleted 154 characters in body
Dec
30
comment Can you use XCode6 with IOS7.1 SDK
Perfect answer - thank you! Worked like a charm.
Dec
11
awarded Famous Question
Nov
26
awarded Nice Question
Nov
22
comment How to calculate the correct Text Color for status bar programmatically?
My apologies - the wording of the your question may have confused me then. Glad you got your answer! Good luck!
Nov
21
comment How to calculate the correct Text Color for status bar programmatically?
So, you essentially want us to write the main function of your app for you? There's nothing wrong with asking a question like this, but please provide code snippets showing us your attempts next time.
Nov
21
comment Parent View leaving space at top
Please provide the sample code for the ViewController. Without even looking at the code (that isn't provided), you may want to check your Status Bar style settings. I think the issue may be there.
Nov
21
answered Header File Changed mistakenly and stuck on running on Simulator in Xcode 6.0
Nov
19
comment UILabel created using Auto Layout does not show attributes for NSMutableAttributedString
The funny thing is, I initially had the secondLineRange code, but when Xcode's autocomplete showed me NSRangeFromString(), I just assumed I could use that without really thinking about it.
Nov
19
comment UILabel created using Auto Layout does not show attributes for NSMutableAttributedString
I didn't RTFM on NSRangeFromString() - I just assumed it did something it didn't.
Nov
19
comment UILabel created using Auto Layout does not show attributes for NSMutableAttributedString
Yup, that fixed it. I feel like an idiot - thanks fabio!
Nov
19
accepted UILabel created using Auto Layout does not show attributes for NSMutableAttributedString
Nov
18
asked UILabel created using Auto Layout does not show attributes for NSMutableAttributedString
Nov
15
awarded Notable Question
Nov
13
comment Cell spacing in UICollectionView
Perfect solution - thanks!
Nov
12
comment How to get a UITableView's visible sections?
What a beautifully simple answer. Thanks!
Nov
11
comment iOS7 when UIsearchbar added in UINavigationBar not showing cancel button
If your app enables both portrait and landscape mode, then it won't recalculate the size properly when you switch orientations. This is where auto-layout would be helpful, but it would involve some finagling with the titleView property, which auto adjusts size when an item is set. So annoying. I ended up just creating my own cancel button and placing it as the rightBarButtonItem.
Nov
11
awarded Popular Question
1 2 3 4 5