Category: Apple

  • Tuples in Swift

    Tuples in Swift allows user to assign group of values to a variable, constant and even return parameter of a function. In the below example, a employee constant is assigned Int and String values. And to access these parameters, we need to use .0 and .1 let employee = (103, “Deepak”) employee.0 employee.1 Now let…

  • How to reduce size of document with images in Microsoft Word

    Microsoft Word provides users with the option to reduce the file size of the document with images. In this tutorial, we will see the technique of reducing the file size in Word 2013 and Word 2011 for Mac. Reduce images size in Word 2013 Word 2013 users can use the Compress Pictures option available as…

  • Binary search

    After a simple bubble sort algorithm (not the most efficient sorting algorithm), let us try to implement Binary search in Swift Programming Language. Binary search algorithm can be applied only on sorted arrays. So let us first generate random numbers and store them in an array. Then call the bubble sort function to sort the…

  • Bubble Sort

    The best way to practice a new language is to write more programs using that language. Here is a Bubble Sort program written in Swift Programming language. Data to be sorted = {12, 56, 32, 23, 67, 87, 45, 23,10, 11} Bubble Sort Bubble Sort is performed by comparing two number starting from the left…

  • Decode job advert posted in Swift Language

    I came across this unique Swift job advert in stackoverflow.com posted by Criteo. (Need to add override for the init function, missed in the original job post) var hello = “Hello, I am a Swift Program, paste me in the playground” var doyouswift = “You think you have what it takes to build the next…

  • How to disable arc for specific classes in Xcode

    Xcode provides option to disable arc only for specific classes by providing a compiler flag. This is quite useful when you are including framework written prior to iOS 5 in your project. Let us see the steps required for specifying the compiler flag in Xcode. In the above screenshot, you can see errors rested ARC…

  • How to hide/unhide slides in Keynote

    In this short tutorial, we will be covering the steps required to hide or unhide slides in a Keynote presentation. This tip is quite useful when you want to hide certain slides from your standard presentation depending upon audience. Hide Slides in Keynote Step 1: Launch the Keynote app with the presentation. Step 2: Navigate…

  • How to change bluetooth device name of iPhone/iPad/Mac

    Change bluetooth name for iPhone, iPad and Macbook Pro. In this tutorial we are going to cover the steps required to change the device name that appears while discovering bluetooth enabled Apple devices. For example when you are trying to pair iPhone with MacBookPro, the Set up Bluetooth Device screen on Macbook Pro would display…