Here’s a quick example of how to create a custom UIView to display a speech bubble in Swift 2.0 just like this:
Step 1: Subclass UIView
Firstly, you need to subclass UIView as follows.
If you intended to use storyboard, ensure that you replace the fatalError line with super.init(coder: aDecoder)
classSpeechBubble:UIView{varcolor:UIColor=UIColor.grayColor()overrideinit(frame:CGRect){super.init(frame:frame)}requiredinit?(coderaDecoder:NSCoder){fatalError("init(coder:) has not been implemented")}}
Welcome to my personal blog where I’ll sporadically and infrequently post about Hilenium and neat Swift and Symfony2 tools and resources that I come across.
A word about Hilenium
Julian, my business partner, and I decided to build Hilenium to help agencies and marketers work better together.
Between us we have decades of complementary experience, with Julian having built a successful web agency and I having worked as a CMO and senior marketer in a range of companies and successful startups.
Together, we will make it easier for agencies and marketers to pitch ideas, collaborate on projects and deliver exceptional marketing outcomes.