• Tutorial Storyboards in iOS 9

    07 June 2017
     Storyboards are an exciting feature first introduced way back in iOS 5 that save you a lot of time building user interfaces for your apps.To show you what a storyboard is, I’ll let a picture do the talking. This is the storyboard that you will be building in this tutorial:You may not know exactly yet what the app does but you can clearly seRead more...
  • Wifi Transfer between iPad and Computer

     ipad computer wifi transfer
    26 March 2016
    If you are tired of the iTunes restrictions and looking for a high efficiency transfer tools for iPad, this Wireless Transfer App for iPad is your best choice. Normally you will need to connect your iPad to computer via USB cable if you like to transfer photo or video between iPad and computer. But this iPad computer Wifi transfer tool caRead more...
  • How to pass an XCode variable to the HTML file

    16 June 2015
    You can construct a Javascript string then pass into -stringByEvaluatingJavaScriptFromString as show below. NSInteger u = get_integer_from_user(); NSString* script = [NSString stringWithFormat:@"call_your_function(%d);", u]; [webView stringByEvaluatingJavaScriptFromString:script]; You can do something like [_webView stringByEvaluatingJavaScriptFRead more...
  • Printing multiple pages in Objective-C

    16 June 2015
    This prints a representation of a page preview called sheet, which is an NSBox - (void)sendToPrinter:(int)code { NSPrintInfo *printInfo; NSPrintInfo *sharedInfo; NSPrintOperation *printOp; NSMutableDictionary *printInfoDict; NSMutableDictionary *sharedDict; sharedInfo = [NSPrintInfo sharedPrintInfo]; sharedDict = [shaRead more...
  • UIWebview Fit Contents in Frame

    16 June 2015
    - (void)webViewDidFinishLoad:(UIWebView *)webview { CGRect oldBounds = [[self webview] bounds]; //in the document you can use your string ... ans set the height CGFloat height = [[webview stringByEvaluatingJavaScriptFromString:@"document.height"] floatValue]; [webview setBounds:CGRectMake(oldBounds.origin.x, oldBounds.origin.y, olRead more...
  • NSArray

    25 February 2015
    NSArray is Objective-C’s general-purpose array type. It represents an ordered collection of objects, and it provides a high-level interface for sorting and otherwise manipulating lists of data. Arrays aren’t as efficient at membership checking as sets, but the trade-off is that they reliably record the order of their elements. The basic colleRead more...
  • UIPrint​Interaction​Controller

    Download Hardware I/O Tools from Apple Developer Website
    25 February 2015
    With all the different means to comment, mark up, save, and share right at our fingertips, it's easy to overlook the value of a printed sheet of paper.UIKit makes it easy to print straight from a user's device with custom designs that you can adapt to both your content and the paper size. This article will first walk through how to format your contRead more...
  • UIAlertView

    25 February 2015
    Alert views are pop-up views that appear over the current view on the iPhone.Creating and showing an alert (ARC compatible): UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Really reset?" message:@"Do you really want to reset this game?" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil]; // optional - add more buttonRead more...
  • Using Xcode for Free Responsive Design Testing on a Mac

    19 February 2016
    Quick Tip : Using Xcode for Free Responsive Design Testing on a MacAt GRAYBOX almost all projects we’re doing now are responsive designs so that our websites function great on a variety of mobile devices. This means we have a ton of testing devices now in the office including:iPhone 3G (iOS 4) iPhone 4 (iOS 5) iPhone 4S (iOS 6) iPhone 5 (iOS 6) iRead more...
  • Making a PDF from a UIWebView

    25 February 2015
    While working on a project I needed a way to generate a pdf from some in app html to a for emailing and printing purposes. This seemed like a rather easy task, however the pdf generated was always empty. After digging around the web I kept coming back to this post onStackOverflow. A bit more searching I came across this great post by Brent Nycum whRead more...
  • Implementing Pull-to-Refresh and Handling Empty Table

    uirefreshcontrol featured
    14 July 2014
    In this iOS Programming 101 post, I would like to answer two common questions raised by our readers.I follow your table view tutorial to create my first app. The tutorial is great. It shows us how to display data in the table view. But what if the table is empty? When there is no data, the app should display a friendly message instead of just displRead more...
  • How to Integrate Facebook Login in iOS App

    facebook-login-feature
    19 February 2016
    How to Integrate Facebook Login in iOS AppIntegrating Facebook features into an app is nowadays a quite common task, and one of the most important steps in the integration process is the login functionality implementation. Logging in with Facebook not only allows you to attach a social characteristic into your app, but it can also be used as a logiRead more...
  • Building a Text to Speech App Using AVSpeechSynthesizer

    text-to-speech-app
    25 February 2015
    iOS is an operating system with many possibilities, allowing to create from really simple to super-advanced applications. There are times where applications have to be multi-featured, providing elegant solutions that exceed the limits of the common places, and lead to a superb user experience. Also, there are numerous technologies one could exploitRead more...
  • Anatomy of a UICollectionViewController

    19 February 2016
    Let’s go right to an example of one of these babies in action. The UICollectionViewController family contains several key components, as you can see below:Take a look at these components one-by-one:UICollectionView – the main view in which the content is displayed, similar to a UITableView. Note that it doesn’t necessarily have to take uRead more...
  • UICollectionView Example

    Small Layout
    19 February 2016
    UICollectionView Example with UICollectionViewFlowLayoutI'm waiting for some friends to come into town tonight so I thought I might throw together a very basic UICollectionViewFlowLayout example.It demonstrates proper use of:UICollectionViewFlowLayout properties and basic subclassing.How to properly implement UICollectionViRead more...
  • iOS Core Image filters

    iOS5-core-image-blog
    19 February 2016
    CIImage with applied image effect can be retrieved by accessing outputImage key value. After we create new context in which image will be drawn, we can set this image to our UIImageView.// CIImage on which we apply effect CIImage *inputImage = [[CIImage alloc] initWithImage: [UIImage imageNamed:@"image.png"]]; // CIFilter CIHueAdjust CIFilter Read more...
  • The Status Bar

    19 February 2016
    The Status Bar (or UIStatusBar) is the 20-pixel-high strip at the top of the window that shows the carrier name and signal strength, network status, current time, and battery strength:DefaultBlack OpaqueBlack TranslucentBlack and white status bars push the underlying views down, giving you 320 x 460 pixels of screen space to work with in your app. Read more...
  • Creating An Image Gallery Like Over – Part 1

    Screen Shot 2013-08-09 at 8.36.42 PM
    19 February 2016
    For this tutorial, I will start with a Fresh iOS6 View-Based application that uses Storyboards and ARC. Also note that I will be optimizing for the iPhone 5 resolution.  You are free to make the tweaks necessary to deploy on the iPhone 4 and 4S.Here is a breakdown of what we will cover in this part:Creating a UICoRead more...
  • Developing Split View Apps for iPad

    19 February 2016
    Getting StartedUsing Xcode, create a Split View-based Application project and name it splitViewBased (see Figure 1).Figure 1. Creating a new Split View-based ApplicationObserve the files created in the Classes and Resources folder (see Figure 2). Notice that there are two View Controller classes (RootViewController and DetailViewController) asRead more...