2012年9月29日 星期六

Create a Quick Response Code (QR Code) image using Google Chart

Here is an example of generating a QR code image for the My developerWorks iphone app on iTunes: "<"img src="https://chart.googleapis.com/chart?chs=250x250&cht=qr&chl=http://itunes.apple.com/us/app/developerworks/id391162970?mt=8&choe=UTF-8" alt="Download developerWorks app" /">" Download developerWorks app QR codes have a different set of required parameters from any other chart:

2012年9月7日 星期五

iPhone Socket Programing in Objective-C

“What is Socket programming.”? So it is simply a way to communicate with two machines using UDP and TCP/IP protocol. Socket are interfaces that allows you to transfer data in bidirectional way means from one app to another app. Socket has two sides. Each side of it is identified by a combination of IP address and port. Socket programing is used in various situation in iOS for iPad, iPod and iPhone application development like on line gaming, chat application etc. There are lots of guides and articles available to make socket connection between apps but these are very limited in Objective-C and it is very complicated to integrate them. This article discusses only how we can create a socket connection from one app to another app. After establishing the connection both apps can send and receive data to and from each other. Socket Programming in Objective-C can be described in 3 parts: 1. Setting Socket Connection 2. Reading from Socket Connection 3. Writing to Socket Connection For detailed implementation of these 3 parts of Socket Programming refer to: Socket_Programing_for_IOS.pdf