I am trying to figure out a way to make my selectedBackgroundView of a cell, larger than the cell itself. My following approach aims to make the sele ...
I am trying to figure out a way to make my selectedBackgroundView of a cell, larger than the cell itself. My following approach aims to make the sele ...
Apple's tutorial describes the difference between init(frame:) and init?(coder:) as You typically create a view in one of two ways: by programati ...
Using CLANG_ANALYZER_NONNULL (i.e. -Xclang nullability), I got "Null is returned from a function that is expected to return a non-null value": Usin ...
According to apple's document Creating a Custom View this method should be called if you're using a custom view proxy in the Interface Builder. If y ...
I'm using Paged UIScrollView with an embedded UIPageControl like explained at https://github.com/romaonthego/REPagedScrollView. The code works fine w ...
I am sublassing either an UIImageView or UIView for generating simple color tiles with digits. If I am using UIImageView, I use initWithImage method. ...
I have a custom view with a sublayer (CAShapeLayer) and subview (UILabel). When I create the layer in initWithCoder and set the background color, it a ...
I'm attempting to use a UINavigationController that utilizes a custom subclass of UINavigationBar. However, I'm running into a problem with initWithFr ...
A Cocoa newbie here. I was trying to encode an instance variable inside an NSView to save to a file. But whenever I encode it, it is being overwritten ...
I created a UIView subclass associated with .xib file. This UIView subclass is to be used in a UIViewController. In the controller, I think there are ...
I have a custom view that I want to be able to initialize both in-code and in nib. What's the correct way to write both initWithFrame and initWithCod ...