Tuesday, July 24, 2012

If you want to draw a line pixel by pixel.
You will have to use combination of UIBezierPath, CAShapeLayer, CABasicAnimation. You can download the code here. The piece of code given below animates a simple line drawn pixel by pixel from point (50.0,0.0) to point (120.0, 600.0).

Thursday, July 19, 2012

Things have changed a little bit for ad hoc. This post is for people who may face problem while trying to create adhoc. While trying to install .ipa on device through iTunes, it gives error "iTunes sync failed to start"

Make sure your mobile provisioning for ad-hoc and distribution certificate is installed before we proceed any further. You can go throughmy old post, it is very detailed, just to refresh things like how to create certificate and other required things.

Note: You can read captions on the image for more clarity.

Add Ad Hoc configuration by duplicating release (You can do that by pressing + sign)

)

You need to add distribution signing profile for Ad Hoc as well as Release.

Now on top left corner of your XCode screen. Click on project Name like here I click on MIMChartLIb

I get popup like this.Click on Edit Scheme.

Go to Archieve(Highlighted cell on left tableview). On right side,Change Build Configuration to Ad Hoc.Click OK.

Now go to Product > Archive

It will ask you to sign with keys. Click Allow or Always Allow.

After sometime, Organiser window will open displaying Archive. If not, You can open Organiser from Xcode Menu: Window>Organiser.

You need to add datasource methods for sure. Return more than 1 for numberOfPreviewItemsInPreviewController if you want user to be able to preview next and previous file while in preview mode. Else return 1 if you want user to exclusively preview only selected file.

You may add delegate methods optionally depending on your requirements. In Sample code, I have used these delegate methods to add the zooming effect where the preview seems to come out of the same button clicked by user.

Tuesday, July 10, 2012

Atmosphere is again hot with the anticipation of new Mac OS. Again, millions of 20 dollars will be added to trillion dollar Apple :) Lets take a quick look at the feature list.

iCloud is automatic and effortless now. Just sign in once with your Apple ID and iCloud is set up in all the apps that use it.

Reminder: Set due dates and you’ll get alerts as deadlines approach. Set a
location from your Mac, and your iPhone or iPad will remind you when you
get there.

Notes: Its more noteworthy with photos, images, and attachments.Pin important notes to your desktop so they’re easy to get to.

iMessage: You can send messages to anyone on an iPhone, iPad, or iPod touch
running iOS 5, too.Send photos, videos, documents, and contacts — even send messages to a group.

Notification Center just like iPad—for any new email, a message, a software update or a calendar alert.

Power Nap is most awesome-It periodically updates Mail, Contacts, Calendar, Reminders, Notes,
Photo Stream, Find My Mac, and Documents in the Cloud,downloads software updates and makes
backups with Time Machine. While updating, the
system sounds are silent and no lights or fans come on, so nothing
disturbs you as reported on Apple's website.

Dictation -It converts your words into text.And it recognizes people from your contacts so it enters names accurately. Dictation supports English (U.S., UK, and Australia), French, German, and Japanese.

Share Button-There is Share button throughout OS X Mountain Lion.

Built-in Facebook support- You can share what’s up with you right
from the app you’re in. Post photos or links. Add comments and
locations.OS X adds your Facebook friends and their profile photos to Contacts.

Built-in Twitter support- OS X Mountain Lion is designed for tweeting. Sign in once and you’re all set up .You can tweet from Notification Center, too.

Game Center app - You can play anyone on a Mac, iPad, iPhone, and iPod touch.Just use your Game Center account from iOS or create one with your Apple ID. Then sign in and you’re in.

Safari- When you open web pages on your iPhone or iPad, iCloud Tabs makes them available on your Mac, too. So you can pick up browsing wherever you left off. Safari saves entire web pages in your Reading List,not just the links.

Live Feed

My Tweets

Goal to Open Source

I believe in open knowledge, hence I want to make this technology open source whatever I can on my blog. You can ask me to write about any particular mobile topic if you want. You can follow me on Twitter as well.