Tutos

TwitterFacebook
Get flash to fully experience Pearltrees
http://www.iosdevnotes.com/2011/10/core-location-redux-adding-nstimer/ Yesterday, I posted a tutorial on getting started with Core Location . Be sure to check it out if you haven’t already. One of the comments we received pointed out that it would be a good idea to also have an NSTimer running to stop the Core Location updates should we never receive a location with a good-enough accuracy. This prevents the case where the device keeps Location Services powered up (such as the GPS and radio) and drawing power. Let’s take a look at how to implement this timer: First, setup an NSTimer class variable in the same class where you’re using the CLLocationManager :

Core Location Redux: Adding an NSTimer

Mobile apps that are geographically-aware are all the rage these days, and there’s a number of ways to jump into this new geo-world we live in. One of the more interesting ones is SimpleGeo . They’re a startup in San Francisco that provides a number of APIs for doing geo-related things (like geofencing, and reverse geocoding which we’ll take a stab at today). Although they have a pretty decent iOS framework, there is next to zero documentation on how to use it. So I thought I’d write a simple app demonstrating how to do a reverse geocode (and retrieve the current weather) using SimpleGeo.framework . Here’s the process:

SimpleGeo on the iOS: Getting Started Tutorial | iOS Dev Notes

http://www.iosdevnotes.com/2011/08/simplegeo-ios-started-tutorial/

Core Location in iOS: A Tutorial

Developing iOS apps that can take advantage of the built-in GPS unit is a great way to add a new dimension to the user experience. You can quickly make your apps location-aware (and able to find the current latitude/longitude coordinates) with minimal effort. This tutorial will walk through the steps involved in finding a device’s current position. In iOS, you can find the current lat/lng by making a request to the Core Location component to start looking up location information. This works via a series of delegate messages passed to our application when Core Location starts updating. By default, the location hardware in our device is usually turned off (or otherwise in an idle state) so as not to needlessly drain power. http://www.iosdevnotes.com/2011/10/ios-corelocation-tutorial/
In my recent post on How To Choose the Best XML Parser for Your iPhone Project , Saliom from the comments section suggested writing a post on how to use an XML library to read and write XML documents, create your own objects based on the documents, and perform XPath queries. This tutorial will show you how to do exactly that! We’ll create a project that reads a simple XML document that contains a list of RPG party members, and construct our own objects based on the XML. http://www.raywenderlich.com/725/how-to-read-and-write-xml-documents-with-gdataxml

How To Read and Write XML Documents with GDataXML

http://www.highoncoding.com/Articles/804_Introduction_to_MapKit_Framework_for_iPhone_Development.aspx

Introduction to MapKit Framework for iPhone Development

Maps are important part of our life. We use them daily to find places and directions. The MapKit framework makes it easy for developers to implement applications which can make use of the maps in the applications. In this article we are going to introduce the MapKit framework for iOS programming.
http://maniacdev.com/2010/02/3-very-useful-accelerometer-and-vibration-code-snippets/

3 Very Useful Accelerometer And Vibration Code Snippets

The accelerometer can be one of the more confusing iPhone features to program. The input generally to be filtered, generally needs quite a bit of tweaking, and I’ve found that many people simply want too much out of the accelerometer. The compass addition allows you to take it to a level beyond the original iPhone, but reliable reading of complex gestures are still out of the question. That being said it is a cool feature, and can add another level of interactivity to your apps. Kevin Bomberry from Able Pear Software has written a great post with some very useful code snippets for those wishing to add simple accelerometer usage, and vibration to their apps.
Programmation

Vues

Données

Image

Son

Design

Social

In-app purchase

As of iPhone SDK version 2.1, it doesn't seem to be possible to package your own code into an iPhone OS framework. Messing around with OS X 10.5 framework build options didn't yield any useful results for us. The closest we got is a static library built for each platform (iPhone OS and the Aspen simulator), bundled up into one file (using a command line tool called 'lipo') and a set of header files that you would reference in order to use the library. Setting: You have several implementation files with the corresponding header files that you'd like to reuse in another iPhone app project. Step 1: Create static libraries for iPhone OS and iPhone Simulator. http://dev.byteclub.com/blog/1-iphone-sdk/48-how-to-almost-create-your-own-iphone-os-framework

How to (almost) create your own iPhone OS framework

NotificationsAcrossThreads

Cocoa uses Notifications as a convenient way to broadcast one message to multiple Clients. See NSNotification , NSNotificationCenter , and NotificationSampleCode for more information on using notifications. When your application posts a notification with NSNotificationCenter your app will block until all of the registered notification observers have processed your notification. This is very convenient -- observers receive notifications immediately and posters can continue knowing all interested parties have processed their requests. (Note that the NSDistributedNotificationCenter does not behave this way -- I'll save that for another time) http://cocoadev.com/wiki/NotificationsAcrossThreads
http://www.xprogress.com/post-40-iphone-internet-connection-check-wifi-3g-edge-something-like-reachability-h/ Usage is really simple: if ([Connection isConnected]) { ... } else { ... } if ([Connection isConnected]) { ... } else { ... } Connection.m file:

iPhone internet connection check (WiFi, 3G, Edge) something like Reachability.h