Mandar Apte

UI/UX Designer from Mumbai, Maharashtra, India.

Category: Tutorials

Free Tutorials

  • Using SKStoreReviewController API to prompt users to write reviews for your App.

    Introduction to StoreKit and Apple App Store policies

    I will write down a few concepts & ideas to help you understand how to implement StoreKit app review functionality in your app using Xcode.

    Important Points to Remember

    You can ask your users to rate your app on a scale of 1 to 5 stars. Users can also choose to write reviews for iOS and macOS apps.

    Developers can view, sort and respond to reviews in iTunes Connect.

    About Summery of Ratings

    Every App Store app has one summary rating on the product page, specific to each territory on the App Store.

    The developer can reset your app’s summary rating by releasing a new version of the app.

    The right way to ask for Ratings and Reviews

    The developer can ask users to rate and review your app when they are most likely to feel satisfied, such as when they have completed an action, level, or task.

    This will give users an easy way to provide feedback on the App Store without leaving your app.

    The developer can prompt for rating a maximum of three times in 365 days.

    Users will submit a rating through the standardised prompt.

    Presenting the Review Prompt

    Although you should call this method when it makes sense in the user experience flow of your app, the actual display of a rating/review request view is governed by App Store policy. In addition, because this method may or may not present an alert, it’s not appropriate to call it in response to a button tap or other user action.

    When you call this method in development mode, the review request view is always displayed so that you can test your app on your device. However, this method will not be called when distributing your app using TestFlight.

    When you call this method in your App Store-published app, a review request view will be presented, and the operating system will handle the entire presentation process.

    (more…)
  • Chapter 05: Dictionary in Swift

    What is a Dictionary?
    The Dictionary is an unordered List that can be quickly accessed by key

    Here is how you can declare an Empty Dictionary

    var emptyDictionary = [String : Int]()

    Dictionary with Predefined Key Pairs

    var apps = ["Productivity" : "Keynote", "Social" : "Facebook", "Music" : "iTunes"]

    Accessing the First Key Element of the Dictionary

    var optionalApp = apps["Productivity"] // Keynote
    (more…)
  • Chapter 02: Variables & Constants in Swift

    Data Types in Swift Language

    Integers i.e. Int:
    1, 2, 3, 199, 1000
    Float & Doubles:
    3.14, 1.168, M_PI
    Boolean Values like Bool:
    true or false
    Collection of Characters like Strings:
    “iOS Development”, “Apple”, “1.2”

    We can create our data type using the keywords Struct & Class.

    All About Variables

    Here is how we declare Variables in Swift:
    First, we start with the ‘var’ keyword, then ‘Identifier Name’ & ‘Initial Value.’

    Here is how to Declare Integer values: Int

    var thisYear = 2017
    var ourAge = 20

    Here is how to Declare Empty Integer

    var emptyInteger = Int()

    Here is how to Declare a String

    var courseName = "iOS Development"
    var language = "Swift"
    var software = "Xcode"
    (more…)
  • Chapter 01: Let’s Learn Swift Programming Language

    About Swift

    Swift Programming Language is a new sensation, something happening, or the next paradigm in the computer programming world. Apple introduced Swift at WWDC, Apple’s World Wide Developer Conference, in 2014. Apple declared Swift an Open-Source Programming Language on December 3, 2015.

    Swift is getting a warm welcome from the development community as a breath of fresh air for their daily programming job.

    Swift natively supports Unicode Characters, Emojis, and Asian Languages like Devanagari Characters & Chinese Characters. Which was lacking in 30-year-old programming Languages like C & Objective-C

    Here is what others say about Swift Programming Language from Apple to Wikipedia.

    (more…)
  • Identify the iPhone or iPad model programmatically using Swift Language.

    You may be programming a Universal App for iPhone, iPad, or iPad Pro and wondering how to write conditional code for those variant iOS device sizes.

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

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

    Note:
    This code uses the native bounds of the device, so it will work for all current devices that may be in landscape or portrait mode. Code is written in Swift Programming Language.

    (more…)
  • Call function from FirstViewController to SecondViewController using Swift Programming Language.

    Here is the situation in your Xcode project where you want to call a 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 a superclass.

    The second swift that you want to call a function from, we will assume that it has ‘SecondViewController’ as the class name & it has ‘UIViewController’ as a superclass.

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

    So, you will write a print function as follows:

    (more…)
  • Create a single PDF file by combining multiple documents using Preview on Mac.

    Preview Macintosh OS X Application Image Editing Batch Processing

    Here is a simple solution to create a single PDF by combining multiple files from various file types.

    Assumption: I Assume you have 10 PNG files you want to combine into a single PDF file.

    Note: It doesn’t matter if those ten files have different height & width dimensions.

    Here is how to do this:

    Step 01:
    Locate & Open Preview in the Applications folder on your Macintosh

    Step 02:
    Select Preview. Now go to File > Open.

    Step 03:
    Select & Open all desired files in Preview

    (more…)

    by

    , ,
  • How do you use Disk Utility to partition disks on a Mac?

    Macintosh OSX Disk Utility

    As per Wikipedia:

    Disk Utility is a system utility for performing disk and disk volume-related tasks on the macOS.

    Day-to-day functions supported by Disk Utility are:

    • Creation, conversion, backup, compression and encryption of logical volume images from a wide range of formats read by Disk Utility to .dmg or, for CD/DVD images, .cdr
    • Mounting, unmounting and ejecting external disk volumes
    • Enabling or disabling journaling
    • Verifying a disk’s integrity and repairing it if the disk is damaged
    • Erasing, formatting, partitioning and cloning disks
    • Secure deletion of free space or disk using a “zero out” data, a 7-pass DOD 5220-22 M standard, or a 35-pass Gutmann algorithm
    • Adding or changing partition table between Apple Partition Table, GUID Partition Table and master boot record (MBR)
    • Restoring volumes from Apple Software Restore (ASR) images
    • Checking the S.M.A.R.T. status of a hard disk
    • Disk Utility functions may also be accessed from the OS X command line with the diskutil and hdiutil commands.

    Now, we will learn how to partition disks,

    Important Note:

    • Partitioning a disk erases all the data previously stored on it
    • The disk utility’s partition feature divides the disk into partition sections, which appear on the desktop as separate disks.

    Precaution: Before proceeding, backup all your computer data using Time Machine on a hard drive other than the one you are currently partitioning.

    Here is how to Partition a disk

    Step 01:
    Connect the External Disk to your Mac using a USB / FireWire cable to partition it

    Step 02:
    Locate ‘Disk Utility App in Applications > Utilities

    (more…)
  • How do you change or upgrade the time machine backup hard disk without losing your old backup data?

    Here is how to transfer backups from a current backup drive to a new high-capacity backup drive

    Step 01: First, check the format of your new backup drive

    1. Connect your new backup drive to your Mac.
    2. Open Disk Utility (located in the Utilities folder).
    3. In Disk Utility, select the new drive’s icon to ensure it has a GUID partition and is formatted as Mac OS Extended (Journaled). Reformat it with the Mac OSX Extended (Journaled) option with a GUID partition. At this stage, you can format your new backup drive with Mac OSX Extended (Journaled, Encrypted) to password-protect it and thus safeguard your data. Remember to write down the encryption password you set for your drive this time.

    Step 02: Set permissions on your new backup drive

    1. Open a new Finder window. In the sidebar, click the icon of the latest backup drive.
    2. Choose Get Info from the File menu.
    3. Make sure “Ignore ownership on this volume” is deselected (unchecked) at the bottom of the “Sharing & Permissions” section of the Get Info window.
    (more…)
  • What does the Trust this Computer functionality mean, and what if you accidentally tapped on Don’t Trust this Computer and want to reset it?

    What do trust settings mean to your iOS & macOS device

    When you connect your iPhone, iPad, or iPod touch to a computer for the 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 whenever you connect your iOS device to that computer.
    ios9-trust-this-computer-alert-message
    (more…)

    by

    , ,

Sponsors


Search