Victor Choi

  • Home
  • Business
    • Internet
    • Market
    • Stock
  • Parent Category
    • Child Category 1
      • Sub Child Category 1
      • Sub Child Category 2
      • Sub Child Category 3
    • Child Category 2
    • Child Category 3
    • Child Category 4
  • Featured
  • Health
    • Childcare
    • Doctors
  • Home
  • Business
    • Internet
    • Market
    • Stock
  • Downloads
    • Dvd
    • Games
    • Software
      • Office
  • Parent Category
    • Child Category 1
      • Sub Child Category 1
      • Sub Child Category 2
      • Sub Child Category 3
    • Child Category 2
    • Child Category 3
    • Child Category 4
  • Featured
  • Health
    • Childcare
    • Doctors
  • Uncategorized

12/05/2017

A Code Sample to use Core Data Stack as a Singleton

 6:26 PM     AppDelegate, Core Data, Core Data to Singleton, Singleton     No comments   

I used to create an instance of my Core Data Stack in AppDelegate file and accessed it from other View Controllers. But I have to modify it because iOS 11 forces to access AppDelegate file in the main thread. So I made my Core Data Stack as a singleton.

If you are looking for a code sample to make your core data stack as a singleton. Please refer the code below.

class func sharedInstance() -> CoreDataStack {
    struct Static {
        static let instance = CoreDataStack()
    }
    return Static.instance
}
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

How can I detect iPhone X's screen size?

 4:32 PM     Detect iPhone X Screen, iPhone X, iPhone X Screen Size, UIScreen     No comments   

How can I detect iPhone X’s screen size?

After Apple released iPhone X I am trying to update my application for iPhone X. The UI elements to fit iPhone X I have to detect the screen size of iPhone X and I found the code below which works for me.

if UIDevice().userInterfaceIdiom == .phone {
        switch UIScreen.main.nativeBounds.height {
        case 1136:
            print("iPhone 5 or 5S or 5C")
        case 1334:
            print("iPhone 6/6S/7/8")
        case 2208:
            print("iPhone 6+/6S+/7+/8+")
        case 2436:
            print("iPhone X")
        default:
            print("unknown")
        }
    }
  • source
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

11/24/2017

First impression on iPhone X

 6:47 PM     Face ID, iPhone X, iPhone X Plus, Touch ID     No comments   

Face ID

  • Sometimes I feel it’s better than Touch ID. For example, when I see a notification on the Lock screen glancing it is the only thing to read it.
  • Sometimes I miss Touch ID. For example when I download and install an app on the App Store I need to double click the upper right button to get it done. In this case Touch ID is better user experience than Face ID.
  • A few apps don’t support Face ID yet. So it is not good for iPhone X usage.

iPhone X Plus

I have used iPhone 6 Plus for 3 years and now I changed my main phone to iPhone X. What I feel is a smaller form factor of iPhone X makes me uncomfortable to use when I type. Probably my hands has been accustomed to use a bigger form factor. So I think that iPhone X Plus will be released in the next year.

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

11/20/2017

How can I fix node-gyp install error?

 7:11 AM     node, node-gyp, server, ubuntu     No comments   

I have met this error when I try to migrate my service to a different server. At first, I tried to config Python environment with the command below.

sudo apt-get install git python2.7
npm config  set python python2.7

Then I tried to build it again and met another error. So I reinstall build-essential package in my Ubuntu server.

 sudo apt-get install build-essential
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

7/14/2017

Why should you use AirPod if you are Apple user?

 6:18 PM     Airpod, Apple, bluetooth, earphone     No comments   

AirPod is the best bluetooth earphone for me. The reason is that AirPod performs switching among Apple devices. I have used many bluetooth earphones which support Multi-Pairing. But most of them didn’t make me satisfied. Apple AirPod helps me my workflow more seamless and now I feel that it’s worth to buy if you are an Apple user.

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

7/12/2017

If you can't get OAuth Token by SFSafariViewController...?

 11:31 PM     Oauth, SFSafariViewController     No comments   

Suddenly I have experienced this and found that there was a deprecated method. I used to use process URL Scheme with a method below.

func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
    return true 
}

But now I need to replace the method above to a method below.

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
    return true 
}
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

5/01/2017

Apple Mach-O Linker Error

 9:55 PM     Mach-O Linker Error     No comments   

Your case might be different. In my case I followed them below.

  1. Go to your application targets in Xcode
  2. Select your app target
  3. Select Build Settings
  4. Change Build Active Architecture Only to Yes
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

4/14/2017

iOS numberOfRowInSection isn't called when tableView reloadData is called

 3:13 AM     iOS, numberOfRowInSection, reloadData, TableView     No comments   

When the number of row in TableView is 0 iOS TableView’s reloadData method isn’t called. So I put a code to handle this case.

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

3/27/2017

Keynote 7.1 , Easy to select an object with Object List

 2:03 PM     7.1, Apple, keynote, List, macOS, Object, Presentation     No comments   

Keynote 7.1 added a new feature which called Object List. With Object List, you can easily select one of the objects in your slide.
Sometimes selecting an object among many objects in your slide is hard. Object List is a solution for that situation.

Choose the View menu on the menu bar and select Show Object List menu under it.



Keynote 7.1 - Object List

As you can see above, the list menu was slid from the left side between the navigator and the main canvas.
Keynote 7.1 is not a major change. But I think that Keynote 7.1 improvement is handy for all users.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Keynote 7.1 , Easy to replace a font in Keynote

 1:10 PM     Apple, Font, keynote, Keynote 7.1, Mac, Management, Replace     1 comment   

Today Apple released Keynote 7.1. One of the new features is easy to replace a font in your presentation.

If you open your presentation in Keynote 7.1, there is a new font management window.

Font Replacement Window in Keynote 7.1
Font Replacement Window in Keynote 7.1

My first impression is much better intuitive to manage my font. I encourage you to use Keynote 7.1. You can update your Keynote through MacAppstore now.

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

3/23/2017

P.O.P - Power of Presentation

 7:46 AM     No comments   

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Newer Posts Older Posts Home

Search This Blog

Popular Posts

  • How to put a padding into a UITextField ?
  • Keynote Tutorial Text Outline - Make your animation meaningful
  • Keynote Tutorial , Sound is a design,too
  • Keynote Tutorial How to improve your bullets

Blog Archive

  • ►  2020 (2)
    • ►  January (2)
  • ►  2019 (21)
    • ►  December (2)
    • ►  November (6)
    • ►  October (5)
    • ►  September (2)
    • ►  August (3)
    • ►  July (2)
    • ►  June (1)
  • ▼  2017 (11)
    • ▼  December (2)
      • A Code Sample to use Core Data Stack as a Singleton
      • How can I detect iPhone X's screen size?
    • ►  November (2)
      • First impression on iPhone X
      • How can I fix node-gyp install error?
    • ►  July (2)
      • Why should you use AirPod if you are Apple user?
      • If you can't get OAuth Token by SFSafariViewContro...
    • ►  May (1)
      • Apple Mach-O Linker Error
    • ►  April (1)
      • iOS numberOfRowInSection isn't called when tableVi...
    • ►  March (3)
      • Keynote 7.1 , Easy to select an object with Object...
      • Keynote 7.1 , Easy to replace a font in Keynote
      • P.O.P - Power of Presentation
  • ►  2016 (48)
    • ►  December (3)
    • ►  November (2)
    • ►  September (1)
    • ►  August (10)
    • ►  July (5)
    • ►  June (7)
    • ►  May (2)
    • ►  April (18)
Powered by Blogger.

Navigation Menu

  • Home
  • About
  • Documentation
  • Contact

Contact Us

Name

Email *

Message *

Copyright © Victor Choi | Powered by Blogger
Design by Hardeep Asrani | Blogger Theme by NewBloggerThemes.com | Distributed By Gooyaabi Templates