Avoid/Disable default ActionSheet for Open,Copy from a UIWebview

sugartin uiwebview avoid actionsheet for actions

Just check following image. So, while displaying contents in a UIWebView, you may face above problem for hyperlinks. By long pressing over a hyper-link, by default UIWebView will display such action-sheet for providing above actions to user. In most of … Continue reading

UIPopOver Illustrations – Part 2

sugartin uipopover illustration part 2 - 3

Using this post, I am going to discuss following topics. Adding a Navigation bar in the popOver Adding Bar-button Items in the PopOver-navigation bar Pushing a view-controller in the PopOver Poping a view-controller in the PopOver Setting the size of … Continue reading

Lock your screen with one click on Mac

sugartin os-x-mountain-lion lock screen

Using this post I am going to illustrate how to lock your screen with very few steps. I will not type to much & will be writing straight to points. So, Here are the steps to achieve Quick Screen Lock. … Continue reading

UIPopOver Illustrations – Part 1

ipad uipopover part-1 image 7

This post will cover following topics UIPopoverViewController UIBarButtonItems UIToolbar, UINavigationBar IBActions & IBOutlet collections Illustration using step by step Illustration using Video. I will describe to the points & will not write too much. 01. Open existing project or create … Continue reading

Enable network sharing on Mac OS X

sugartin wifi share network

Using this post, I am going to illustrate – How to enable network sharing over wifi when using Mac OS X ? 1. Ensure that you are connected to internet. 1.1. Go to System Preferences. 1.2. Click on Network. 1.3. … Continue reading

Detect Device Version – iPhone 2G, 3G, 3Gs, 4, 4s, iPad 1, iPad2, iPad3

sugartin iphones detect device by coding

Sometimes, Your application might need to check which device is being used by the user. For example – My App needs to track that – iPhone3G users are 120, iPhone3Gs users are 340 & iPad2 users are 100. So, I … Continue reading

Accessing Application Version into your application

sugartin accessing app version

  As illustrated in image above, Assume that you have to access & display the Application version name. Or While making a web-service call, you have to pass the version of the application, so that server can know, which version … Continue reading

Using TouchXML for XML having Custom XMLNS

sugartin xml parsing touchxml xmlns custom

Yes ! TouchXML would not be able to trigger XPath queries when XMLs have custom name-spaces. ( XMLNS – xml name-spaces ) Here is the sample XML which has custom name-space.

So, For parsing such data if you try … Continue reading