In the year 2018, I wrote an article —Budget iOS / Swift developer desk. It has been over 3 years and a lot of things have changed since then. The iMac (21.5-inch, Mid 2011) at my home is on 10.13.6 (macOS High Sierra). It works fine, I am writing this article using it. But there are several software which are not being providing updates to this version of macOS. So I decided to invest in a laptop. I had the opportunity to buy a MacBook Air Early 2015 model for 200€. So I purchased it, thinking that it will at…
If your code base still uses Objective-C as of August 2021. You might want to pay extra attention to the file names case-sensitivity. Because the Xcode 12.5 and above and Objective-C compiler will not complain about case-sensitivity and they will point to the files where the case-sensitivity is not matching.
When creating both header (.h) and messages (.m) files I suggest developer to pay extra attention.
For example, I have a file named SYSLoginChecker. For which I created the both header file (.h) as
SYSLoginchecker.h and messages file (.m) as
SYSLoginChecker.m . Xcode and Objective-C compiler will not complain about…
I started using the platform DEGIRO following the suggestion from a co-worker. It took me almost six months to make this decision.
Joining DEGIRO will not make you invest in stocks directly. You need pass the quiz exams that are in place to make sure you have a good understanding of stock market trading and also the investor risks involved in it.
DEGIRO Referral link: https://www.degiro.de/kunden-werben-kunden/anlagekonto-er%C3%B6ffnen.html?id=76A375D7&utm_source=mgm
Note: DEGIRO Referral link will only give me 20€ after three months you have joined them.
Background: It was during the 2020 lock-down relaxation event in Berlin, GERMANY that I was asking my co-worker…
If your text contains HTML tags you need to use the attributed text in order to display it in iOS. Otherwise it will be displayed as plain text without HTML formatting.
For example, I have the following text,
Was ist <u>keine</u> Leitlinie von CHECK24?
I need to display it on the iOS device using a UILabel. If I display it without changing the UILabel to a attributed text. It will display as follows,
You can see that the HTML tag
<u> which stands for underline is not being formatted and displayed as a plain text.
In order to solve this…
I recently watched the movie Career Opportunities (1991) and amazed by the fonts and colour schemes used in it.
In the weekend I decided to recreate them by using the fonts and colour schemes on a demo page to see how it will looks.
IMDb movie page link: https://www.imdb.com/title/tt0101545/
Someone made a video of the end credits. If you have the opportunity watch the movie, if not you can watch the end credits on YouTube: https://www.youtube.com/watch?v=8T3eWXjnhZU
The fonts, I found matching to the ones shown in the end credits,
If your tests are passing on simulator and failing on real devices. Finding the issue that is causing the tests to fail on real devices is time consuming. In my…
If your code base still uses Objective-C as of August 2019. You might want to check if your application or library crashes if you are inserting wrong data type in a NSDictionary because the Objective-C compiler does not complain if the key and value data types are not the same as the expected data type in a NSDictionary during compile time. The crash will only occur during run time. The following are the run time scenarios for the crash occurence,
2. Scenario: “If…
Currently, there are no code converters for converting Swift code into Obj-C code. If you have a project which is initially written in Obj-C and later a fork version of the same project is migrated into Swift. Code refactoring in both Obj-C and Swift can be quite tricky in case you started learning iOS app. development using Swift. In this article, I will be showing you how to refactor a code snippet both in Obj-C and swift.
The below code contains location of a file named “play.mp3” file which is being set to the constant path by using PathForResource method…
Code duplication is a common issue which violates the DRY principle.
In order to solve the code duplication in case of a if..else..if statement where the else statement returns void.
we can use a ternary operator for example, ternary conditional operator (
question ? answer1 : answer2 ).
Since I never owned a desktop / laptop from Apple. I had to buy a desktop / laptop in order to develop applications for iOS.
I set my budget as 400€ for 2018. Since I already wasted 300€…