How to identify user is on iPhone, iPad or iPod touch by accessing their device width property. In other words how to write conditional code for 3.5 inch iPhone, 4 Inch iPhone, 4.7 inch iPhone, 5.5 inch iPhone, 9.7 inch iPad, 12.9 inch iPad

You may be programming Universal App for iPhone, iPad, iPad Pro & iPod touch. And you may be wondering how to write conditional code variant of iOS device sizes.

 
So here is how to write code by identifying device width or device height of your display or frame.

 
Here is how to solve this situation by identifying device width,

(more…)

Continue Reading Post

How to secure macOS – OSX & iOS Wi-Fi Network with recommended settings for Wi-Fi routers and access points

I will list down steps to secure your macOS & iOS Wi-Fi Network.

 

Step 01: First things first, Update you Macintosh, iPhone, iPad, iPod touch & even AirPort Express, Airport Extreme base stations for latest software using Mac App Store.

 

Step 02: Choose Unique & Safe SSID (Service Set Identifier) Wi-Fi network name

 
Wi-Fi network name is case sensitive. Choose a unique name for your network and that isn’t shared by other nearby networks. If your SSID isn’t unique, Wi-Fi devices will have trouble identifying your network. This could cause network device to fail to automatically connect to your network, or to connect to other networks sharing the same SSID.

(more…)

Continue Reading Post

Here is how you can call method or function in FirstViewController.swift from another Class called SecondViewController.swift in your iOS or macOS project within Xcode

Here is situation in your Xcode project that you want to call method from another class swift file to your original class of swift file.

 
Let’s call your original swift class file ‘FirstViewController’ which has ‘UIViewController’ as super class.

 
Second swift that you want to call function from we will assume that it has ‘SecondViewController’ as class name & it has ‘UIViewController’ as super class.

 
You have written function called ‘printSomething()’ in your ‘SecondViewController’ that would be triggered when somebody taps on button present on ‘FirstViewController’ as IBAction called ‘printThis(sender: UIButton)’

 
So you will write printThis function as follows:

(more…)

Continue Reading Post

Here is how to calibrate & maximise your Mac, Apple Watch, iPhone, iPad or iPod touch battery life & performance

Introduction:

 
What is Battery life?

 
Battery life is the amount of time your device runs before it needs to be recharged.

 
What is Battery lifespan?

 
Battery lifespan is the amount of time your battery lasts until it needs to be replaced.

 

General Performance Tips & Solutions

 

  • Update your Apple device to the latest software updates & operating system:
  • Apple software updates often include advanced energy-saving technologies, so always make sure your device is running with the latest version of iOS, OS X, or watchOS.

     

  • Avoid extreme ambient temperatures: Your device is designed to perform well in a wide range of ambient temperatures, with 62° to 72° F (16° to 22° C) as the ideal comfort zone. Avoid exposing your device to ambient temperatures higher than 95° F (35° C), which can permanently damage battery capacity.
  •  
    Apple Device iPhone iPad iPod touch Temprature Comfort Zone

    (more…)

Continue Reading Post

What is Trust this Computer functionality means & what if you accidentally tapped on Don’t Trust this Computer & you want to reset it

What is trust settings means to your iOS & OSX device

 
Background: When you connect your iPhone, iPad, or iPod touch to a computer first time an alert asks whether you want to trust this computer or not.

 
Relationships of Trusted Devices:

  1. Trusted computers can sync with your iOS device, create backups, and access your device’s photos, videos, contacts, and other content.
  2. These computers remain trusted until you change device privacy settings or erase your iOS device.
  3. If you choose not to trust a computer, you block its access to content on your device. You’ll see the trust alert every time that you connect your iOS device to that computer.

 
ios9-trust-this-computer-alert-message

(more…)

Continue Reading Post

How to fix Apple MacBook, MacBook Air, MacBook Pro, iPhone, iPad and iPod touch battery issue where battery status shows charging for long time & it never completes to 100% Charged

From time to time with long use of your Apple devices you may face issue like you may be charging your Apple MacBook, MacBook Air, MacBook Pro, iPhone, iPad and iPod touch for long time but battery charging never completes and display battery 100% Charged and it keep charging indefinitely.

 
So how to fix this?

 
Solution is simple…!!!

 
Assumption: I assume that you are using your Apple device without power cord attached & you have already backup your device using Time Machine for Macintosh & iTunes for iPhone, iPad and iPod touch.

(more…)

Continue Reading Post

Apple iOS deleted apps reappear, keeps coming back or keeps reinstalling even if you have deleted them previously from your iPhone, iPad and iPod touch, Here is how to fix this.

It seems Apple iTunes App Store having problem for users with iOS devices including iPhone, iPad and iPod touch.

 
Symptoms: User deletes purchased or free app from their own iPhone, iPad or iPod touch but after few minutes same apps reinstalls / reappear on home screen.

 
Assumption: I assume your iOS device is connected to the internet.

 
First things first: Backup your iOS device using iTunes on your Macintosh.

 

Solution 01: This solution will work 100% of the time.

(more…)

Continue Reading Post