30th Day As An iOS Developer With No Experience

photo from thebigbadlabblog

October 15, 2015 - 30th Day As An iOS Developer With No Experience THURSDAY

- Payday baby! But first of all, I would like to mention here on my blog, our Lord and Saviour, Jesus Christ. Also our God father and Holy Spirit. I'm going now to say a short prayer. Lord, thank you for everything. I have many questions on my mind. I fear you Lord, I still and will forever believe that You are the most powerful one in the whole universe or multiverse. Forgive us always. We love you.

Ok, so what was on my mind? Why did I say that short prayer. I'm currently typing this post (time check: 1:07 AM). There are many questions on my my, like what I've said before. I need the Lord to give me that answer. I have many problems, although they're not as big as the other people's.

Anyway, I will be now talking about my experience today (30th working day in the company. I am currently handling 3 projects. 2 of those were made from the scratch, made by yours truly. The last one is a quite big project and so complex for me to handle. I also had a pizza. Had paid OTs. I have also learned determination of gadget model:


So far, the working code that I've tried from that given link is this:

if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {

    CGSize result = [[UIScreen mainScreen] bounds].size;

    if (result.height == 480) {
        // 3.5 inch display - iPhone 4S and below
        NSLog(@"Device is an iPhone 4S or below");

    else if (result.height == 568) {
        // 4 inch display - iPhone 5
        NSLog(@"Device is an iPhone 5/S/C");

    else if (result.height == 667) {
        // 4.7 inch display - iPhone 6
        NSLog(@"Device is an iPhone 6");

    else if (result.height == 736) {
        // 5.5 inch display - iPhone 6 Plus
        NSLog(@"Device is an iPhone 6 Plus");

else if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
       // iPad 9.7 or 7.9 inch display.
       NSLog(@"Device is an iPad.");

Post a Comment