iphone

How to distinguish movement accelerations from oscillations and noise in iphone

Hi everybody on stackoverflow. SHORT VERSION :) I need to use (x,y,z) acceleration values related only to the movement of the iPhone. Just to be clear, think an environment like a car. The iPhone's accelerometer is very sensitive. If I log acceleration values with a frequency of 100Hz, there are so many values related to noise, car vib...

iphone : embed Safari (like a "frame") within a native iphone application

Hi, Is it possible to embed Safari within a native application ? Not only lauching Safari but during the navigation, the user could access some buttons of the native application? Just as if Safari would appear in a kind of a "frame" of the native application. If it's possible, how could this be done ? Thanks in advance for your help,...

Seeking iPhone App Architecture Advice: Managing Data

I've built a simple iPhone app that parses data from a remote XML feed, converts the information into objects (they're videos), and displays the videos in a standard table view->detail view->"Play Video" UI. There are hundreds of videos, each with about ten attributes. (The videos are never downloaded, only streamed, using MPMoviePlayerC...

Cocoa-Touch: memory management

I'm customizing a UIPickerView's rows, so I'm implementing the viewForRow method in it's delegate as follows: - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view { if (view) { return view; } else { NSString *s = [datePickerValues...

How can I provide an iPhone app that will be integrated into a customer's project without providing the source code?

I would like to provide my client a native iPhone application module that he could integrate within his own iPhone application. I don't want to provide the source code. How can I achieve this? ...

iphone : customize the calendar pick up date

Hi, My client would like that the user could pick up a date in an iphone app. He wants that all the days of the month appear. Moreover he would like to switch to the next or previous month. How would it possible to do that ? Moreover he would like that in the calendar some days of the month (for ex. the 1rst, the 9th and the 15th) app...

UITableView Scrolling while dynamically adding data to the datasource object

I have a UITableView that is loaded from an NSMutableArray. The array is populated by data that I get from a RESTful web service request. In order to speed up the delivery of data to the user, I'm using a couple other NSArrays to hold a cache of the next sets of data. What I've done is when i'm nearing the end of my current set, in ...

How to test if traffic through port is successful in iPhoneSDK?

Our application is using a few ports out of the standard ones (80 etc) and users are complaining that our app doesn't work but in fact it is their network that is restricting their access to those ports. Is there a way to detect this in the code so that we can warn them with some sort of error? ...

UITabBar with UITableView - I can see the table correctly, but cannot select a row

This may be an easy answer for someone. I first built an a navigation app that had a table loaded from SQLite. The rootViewController (UITableViewController) is loaded from the mainWindow.xib . I added the search and scope functions, and push a detailed view (UIViewController) from a row selection just fine, and can navigate back and f...

Security Policy Error after Installing iPhone SDK 3.1

I'm working on an iPhone project in which the developer that created it has left the company. The Boss asked me to ensure it compiles on the 3.1 iPhone SDK. After installing, it built and ran fine just once on the device. After that, it still builds okay, but if I try to run it on the device, it halts saying Error from Debugger: Erro...

How to know return types of methods in xcode? - iphone development

while typing in Xcode, (objective - c for iPhone dev) Suppose I write [mySprite [[here mySprite is an object of sprite class ( cocos2d - for game development ). ]] After writing this, if I press ## esc ## key. It will show me all the methods. Lets take an example, If I am using [mySprite position]; method, How can I came to kno...

UIView viewWithTag 0 problem

Hi, On view in IB I have numerous items (including view itself). ONLY one item has tag 0, yet following line works for ANY UITextBox other then the one with tag 0. Note that only ONE UITextBox has tag 0, why: (UITextField *) [self.view viewWithTag:0]).text = @"foo"; Interesting that when triggered event received for the element with...

IPhone SDK: Audio Session Error: -12986 .... after upgrade to 3.1

I am building an iPhone audio app using Audio Sessions. Prototype was functioning till I decided to upgrade to 3.1 After a lot of hunting I finally found that the session activation call was failing with error code 12986. I havent been able to find the reason for this anywhere. The NSError object doesnt give any detail. I used the loc...

Haxe - Flash project compiles fine, but won't compile using hxcpp

In summary, I think my question is this: How can I force hxcpp to compile haxe code for Flash 8 ? Here's where I'm at. I'm new to haxe, and am trying to get a sample from here: http://tilestudio.sourceforge.net/flash/Demo.html to compile using hxcpp, in my tests to see how haxe compiled apps work on the iphone. I've gotten other sam...

Html5 cache manifest in a UIWebView?

I'd like to be able to use the html5 cache manifest to store images locally on an iPhone that is visiting the page via a UIWebView within an app. I've set up a sample that I think conforms to the specs, and appears to work in safari 4 and mobile safari, but not in my app's UIWebView. The sample html is set up at http://bynomial.com/htm...

Cant read second table from same sqlite database iphone

in my program i have a database and two tables in it my first function readLocationsFromDatabase // Setup the database object sqlite3 *database; locations = [[NSMutableArray alloc] init]; // Open the database from the users filessytem if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) { // Setup the ...

Xcode: Setting GCC_PREPROCESSOR_DEFINITIONS for different build configurations?

I want to set GCC_PREPROCESSOR_DEFINITIONS for each of my four build configurations (Debug, Release, Ad Hoc, and Distribution.) I'd like to have a different setting for each. The screen I'm looking at is the Target Info window's "Build" tab. When I set the Configuration pop-up to "Debug" I can see my GCC_PREPROCESSOR_DEFINITIONS settin...

How to lower sound on the iphone's sdk Audioqueue ?

Hi, I'm using Aran Mulhollan' RemoteIOPlayer, using audioqueues in the SDK iphone. I can without problems: - adding two signals to mix sounds - increasing sound volume by multiplying the UInt32 I get from the wav files BUT every other operation gives me warped and distorted sound, and in particular I can't divide the signal. I can't...

NSMutableDictionary lookup based on object's address or value when dealing with NSNumber?

If you store NSNumber* as a key to NSMutableDictionary, does it do the lookup later based on the key's address or stored value? It seems that if I store NSNumber in two dictionaries with the value from one serving as the key to the other, sometimes, the key isn't found in the 2nd dictionary even though I'm certain it's in there. What I'...

Mac/iPhone: Is there a way to get a thread identifier without using Objective-C?

Is there a way to get any kind of thread identifier of the currently running thread without resorting to Objective-C's NSThread. I'm improving our custom debug tracing system to handle multiple threads properly. For each line of trace output, I'd like to print a thread id or a thread name. Threads are instantiated in various ways, e.g....