iphone

video play getting crash in few seconds

Hi I am working on iphone application in which I m trying to play a video clip and application hangs after 12 sec. Crash shows error mach_msg_trap. I tried debugging and it show error in this format. Attaching to process 3114. [Switching to process 3114 thread 0x8d03] (gdb) apply thread all bt Undefined command: "apply". Try "help...

HTML5 iPhone Safari Mobile visualize something rather than quicktime symbol when creating an audio tag

I'm writing a very simple webpage in html5 for iPhone. the page is this one Not Working Everything works but in the page from the iPhone i see the quicktime logo with a slash on it and if i tap on it the player shows up the play button and in the background there is the quicktime logo. is it possible ...

UiTabBar with more than 5 tags

Hi all . I have a tabbar with more than 5 view controllers. Iphone adds a 5th tab ,called 'MORE'. But as much as i've researched, i can't find a way to rename it to the Spanish version, "MAS". Anyone can help ? Thanks. ...

How can you randomize the splash screen?

Is it possible to make the iphone app splash screen pick up a random image or text? So that it is different every time (e.g. display tips)? If so how? ...

iphone change tab bar item on button click

Hi, I have 4 tabs in my iphone application. When user will click a button in tab-1, I want to move/switch user to another tab suppose tab-2. How to do that? Thanks in advance. -Ruchir. ...

get image from iphone, using phonegap camera api

I'm new to Xcode and iPhone apps. I want to select an image from iPhone (camera or library) and send to php via ajax. http://wiki.phonegap.com/iPhone:-Camera-API I'm using the phonegap framework, Xcode iPhone SDK version 3.1.x. On clicking button it calls function with parameter 0 or 1, but it does not initialize camera or display the...

Two part question about submitting bluetooth-enabled apps for the iPhone

I have a couple questions about submitting blue-tooth enabled apps on the iPhone. I want to first say that bluetooth is merely an option in the application. The application does not completely rely on bluetooth as there are many modes the user can go in. First, do they require you to have the "peer-peer" key set in UIRequiredDeviceCap...

Finding out estimated duration of a stream using Core Audio

I am streaming a MP3 over network using custom feeding code, not AVAudioPlayer (which only works with URLs) using APIs like AudioFileStreamOpen and etc. Is there any way to estimate a length of the stream? I know that I can get a 'elapsed' property using: if(AudioQueueGetCurrentTime(queue.audioQueue, NULL, &t, &b) < 0) return 0;...

How do I package an SDK (static lib + xibs) for the iPhone?

I am creating an SDK for a client that includes predefined view controllers. What is the recommended way to package everything (static lib, .xib(s), and .png(s)) for easy use? SDKs that I've used (e.g. Pinch Media) do a good job of just providing a .h and .a file that expose only user accessible functionality and hiding everything else....

iPhone dev: load a file from resource folder

I'm writing an iPhone app with a UIWebView which should display various html files I have in the app resource folder. In xcode my project overview, these html files are displayed like this: dirA |---> index.html |---> a1.html |---> a2.html |---> my.css |---> dirB |---> b1.html |---> b2.html |---> dirC |---> c1.html ...

Adding object to an NSMutableSet automatically when it's initiated... (iphone)

Hi ... I have this problem adding an object to NSSet... The NSMutableSet *set "belongs" to main ViewController. I want to add an object (Wall) to this NSMutableSet automatically if I add it to view in interface builder... Wall is a subclass of UIImageView... Thanks :) ...

Convert Xcode view-based app to navigation-based app?

Newbie question: is there an easy way to convert a view-based app to a navigation-based app? I have an existing app sample that was created as a view-based app, and need to be able to create additional viewcontrollers that can be nested. The app is currently using presentModalViewController calls and nibs to display windows. Trying to ch...

Encrypt on iPhone Decrypt in ASP.NET APP

Hey Guys, How can I Encrypt on iPhone Decrypt the same data in an ASP.NET application? Should I not worry about it and just send all data by SSL? Thanks ...

Stopping the iPhone UITableView from scrolling to the top

I'm writing some code that causes a UITableView to change it's height, ie changing the value of tableView.frame.size.heigh. Every time I change the height it causes the entire table to scroll all the way to the top of the table. At which point I have to call scrollToRowAyIndexPath on the table to get the table view back to where it was. ...

Netflix OData API iPhone: Accessing more than just the title

Netflix just recently announced that they have a new OData API which gives developers access to more of their catalog and is exactly what I've been looking for. Also, on odata.org they have a sample iphone objective-c sdk that accesses the netflix odata api and displays a few movie titles in a tableview with a navigationcontroller. http...

How to find out exact version of iPhone SDK for conditional compilation?

I'm looking for a macro that specified the exact version of the iPhone SDK used for compilation. This is needed because when compiling with (and only with) SDK 3.0, I need to add some additional code. __IPHONE_OS_VERSION_MIN_REQUIRED is not the right choice here, since it can be set by the user with parameter -mmacosx-version-min. For e...

iPhone -- MKReverseGeocoder.adminstrativeArea -- getting state abbreviation

In the documentation for MKReverseGeocoder, the administrativeArea property gives you the current state the user is in, and it mentions in an example that it returns EITHER the state name OR its abbreviation. I am wondering if anyone knows how to get the abbreviation instead of the full state name...I have been able to find nothing that ...

indexed table view for iphone

http://developer.apple.com/iphone/library/samplecode/TableSearch/index.html Hi, I am new iphone developer. Can anyone help me to understand how to convert this example to a indexed table view which will look similar to the iphone contacts application. ...

iPhone memory managment question

Hi all newbie in iPhone dev thanks to all : Is there a way/ a tool to know how much memory an object uses when it is created while the app is running ? Using thé console for example. Thanks ...

How can I load a view based on how long I hold a UIButton?

Hello all, I've searched the net and documentation, but haven't found anything quite like what I'm trying to do. I'm working on an app where I want to load one view if a UIButton is held for x seconds, another if it's held for x+y seconds, etc. I found this tutorial. The problem I'm running into is, how do I switch the length of the but...