Blog

You do not have permission to see this blog.
You do not have permission to see this blog.

iOS SDK PDF Limitations

The purpose of this article is to measure PDF limitations faced while developing iOS apps like the ability to search, zoom, text wrapping (reflow), text selection, text extraction (Arabic), license of PDF libraries (if any).

Read More

Localization of your iOS application's Icon.png.

 

If you found this blog post searching for how to localize Icon.png in you iOS application, I will share with you the answer I found out which is as far as I know "You can not".
Once the application is installed, the application's icon will not change by the change of the language settings of the device.
However, you can test the localization of your icon by deleting the application, change the language settings for the device, then reinstall the application.
You will find the right icon. Since users do not change their language settings daily, I think this is good enough.
Of course the icon should be localized like the rest of resources, either by using xCode, or manually by creating the language.lproj folders, and putting the different versions of your icon there.
I hope I saved some of your time by this post.

 

Read More

Solving Serialization/Deserialization issue in Flex

When I was trying to serialize an object   in Action Message Format (AMF) , I faced a problem in deserializing it which was null object value, after some googling I found the solution:

I   preserve the class (type) of any object before encoding in Action Message Format (AMF), so that it can be deserialized when decoding the object, so  If the encoding context did not register an alias for an object's class, the object is encoded as an anonymous object. Similarly, if the decoding context does not have the same alias registered, an anonymous object is created for the decoded data.

Finally we can register class using one of the follwoing ways:

  1. using function registerClassAlias("path to your class", your class);
  2. using the metadata [RemoteClass(alias = "path to your class")]

 

 

Read More

Free Google Translate API v2 2

 Background

Google Translate API v2 is now available as a paid service only, and the number of requests your application can make per day is limited. As of December 1, 2011, Google Translate API v1 is no longer available; it was officially deprecated on May 26, 2011.

Migration
So, if you were using google translate API in you application, you have to register for a paid service or you may do like other many developers migrated to other free API services like

 

Wait, Google Translate API is still FREE :) Lets see how.

 

Read More

Install Xcode 4.2 documentation manually1

 If you have installed the new Xcode 4.2 (only a 1.6 GB file instead of the former 4GB file), you will notice that documentation does not work properly, actually people have been complaining about it and the solution was to download the documentation from inside Xcode as stated here.

 
But if you are a team of iOS developers and want to download the documentation only once and install it on many machines running Xcode?
Here you are the steps:
  1. Download the documentation from Xcode from any machine (as stated here).
  2. Go the download installation (See Figure Below)
  3. Copy the "documentation set" files (it is actually packages with a lot of file so it is recommend to zip them). 
  4. Move them to the same location where you installed Xcode on the other machines
  5. Restart Xcode.
  6. Done.

Read More
« Previous Entries