Core Location Redux: Adding an 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 SimpleGeo on the iOS: Getting Started Tutorial | iOS Dev Notes
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. Core Location in iOS: A 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 XML 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. We’ll then add a new player to the party, and save it back out to disk again. This XML tutorial uses GDataXML, Google’s XML processing library. How To Read and Write XML Documents with GDataXML How To Read and Write XML Documents with GDataXML
Introduction to MapKit Framework for iPhone Development 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.
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. How to (almost) create your own iPhone OS framework How to (almost) create your own iPhone OS framework
Aller au contenu <div class='message error'><strong>Javascript désactivé détecté</strong><p>Vous avez actuellement le javascript qui est désactivé. Plusieurs fonctionnalités peuvent ne pas marcher. Veuillez réactiver le javascript pour accéder à toutes les fonctionnalités.</p></div><br /> Forum Cocoa - Communauté francophone des développeurs Cocoa pour iPhone iPad iPod & Mac Forum Cocoa - Communauté francophone des développeurs Cocoa pour iPhone iPad iPod & Mac
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