Posts

Showing posts from 2012

Adding iOS 4.3 and iOS 5.0 simulator to iOS 5.1 XCode 4.3 SDK

I recently downloaded the latest version of XCode 4.3 and iOS 5.1 from Apple developer site as on (March 2012). Since this package gives me only iOS 5.1, I can't able to test my applications in below OS versions like iOS 5.0, iOS 4.3. To do so, we need to download the required OS separately inXCode. 1. Click on XCode -> Preferences. 2. Navigate to tab, Downloads. 3. Click on the Components button. 4. You can see the list of iOS versions available. Click on Install button on the required OS. 5. The OS will automatically gets downloaded and installed in your XCode. Alternatively, setting your project deployment target to lower versions, will give you an option More Simulators in the Simulator/Device selection menu. clicking on that, opens the same page of downloads.

Connect Samsung devices to Kies on Mac

Connecting a Samsung device to Kies installed on Mac is very hard. Here are the few steps which worked for me.   I was testing these steps for Samsung Galaxy S2. 1. Quit Kies application in your mac. 2. Disconnect your Mobile Device from USB. 3. Go to your Samsung Device -> Settings -> Applications -> Development -> Turn Off USB Debugging. 4. Now connect the Device to the PC through USB. 5. Wait until Media Scanning is completed. 6. Wait until MTP Connected. 7. Now Launch the Kies application on Mac. You can see your device is now connected. Here you go, now you can update your device to the latest os through Kies.

Adding an UITextField to an UIAlertView in iPhone / iOS application

As we all know, UIAlertView is subclassed from UIView, its possible to add sub views to the alert view. Today, we will try to add an text field to UIAlertView. The code is attached below.     UIAlertView *alert = [[ UIAlertView alloc ] initWithTitle : @"See the text field below"     message : @"this gets covered!\n"   delegate : self cancelButtonTitle : @"Dismiss" otherButtonTitles : @"OK" , nil ];      alert. tag  = 1 000 ;            UITextField *_textField = [[ UITextField alloc ] initWithFrame : CGRectMake ( 12 , 45 , 260 , 25 )];     [_textField  setPlaceholder : @"Place holder text" ];     _textField. tag = 1 00 ;     _textField. clearButtonMode = UITextFieldViewModeWhileEditing ;     [_textField  setBackgroundColor :[ UIColor whiteColor ]];     [_textField  becomeFirstResponder ];     [alert a...

Integrating ZXing QR Code reader in iPhone / iOS applications

I spent a lot of time in integrating the QR code reader in iOS applications. I like to share you the steps and let you know the basic bugs that may happen during the integration process and how to debug that too :) Step 1  Download the latest code for QR code reader, zxing framework from github here . Step 2  Drag and drop the ZXingWidget.xcodeproj file to your project. Step 3  Copy the cpp folder from downloaded files (zxing-2.0) to your project. (The download files (zxing-2.0) depends upon the version that has been downloaded from github.) Step 4  Copy the iphone folder from downloaded files (zxing-2.0) to your project. (The download files (zxing-2.0) depends upon the version that has been downloaded from github.) Step 5 Add the following frameworks to your project.  Click on Project name -> Target -> Build Phases -> Link with libraries AudioToolbox.framework AddressBookUI.framework AddressBook.framework CoreVideo.framewor...

Transparent UIWebView in iPhone application

Hi Folks, Today, lets try to implement a transparent web view in our iphone application. Its quite simple and easy to use. 1. Set the background color of UIWebView to clear color. [myWebView setBackgroundColor:[UIColor clearColor]]; 2. Set the Opaque property of the UIWebView to NO.  myWebView.opaque = NO; 3.  Set the html page, body background property in style to transparent.  You can refer the above mentioned settings given in Apple Sample code, TransWeb .

Transparent UIWebView in iPhone application

Hi Folks, Today, lets try to implement a transparent web view in our iphone application. Its quite simple and easy to use. 1. Set the background color of UIWebView to clear color. [myWebView setBackgroundColor:[UIColor clearColor]]; 2. Set the Opaque property of the UIWebView to NO.  myWebView.opaque = NO; 3.  Set the html page, body background property in style to transparent.  You can refer the above mentioned settings given in Apple Sample code, TransWeb .

Add a custom keyboard shortcut key in Mac OS

To add a custom short cut key in Mac OS, follow the below steps. 1. Open System Preference. 2. Select Keyboard. It will load the preferences for Keyboard. 3. Click on Keyboard Shortcuts. 4. Select Application Shortcuts on the left panel. It will load a list of shortcuts on the right panel. 5. To add a new shortcut, click on the '+' button placed at the bottom of the right panel. It will open a dialog with the options. 6. Fill up the dialog as you required and click on 'Add'. 7. Your new custom keyboard shortcut is ready to use now. To find out the list of available shortcut keys in Mac OS, check out this link from Apple .