iphone-sdk-3.0

Moving the position of the back item in a UINavigationBar iPhone

Trying to move the position of the back item on the UINavigationBar by getting a handle to the backbutton however I only seem to be able to make it disappear rather than do anything with it I have the following in viewDidLoad self.navigationItem.leftBarButtonItem.title =@"Testing"; self.navigationItem.backBarButtonItem.title= @"1234";...

MFMailComposeViewController attachment file size limit

I'm using MFMailComposeViewController to send a file. Everything works fine with files under 15mb. Anything over, and the file simply doesn't get attached to the MFMailComposeViewController view. It's not that the email server isn't accepting, its that it never gets attached in the first place. Does anyone have any ideas if there's a w...

HTTP example for I-Phone

I am searching for HTTP example for I-phone 3.0. i am doing SyncMl application , which is uses http based protocol to syncronise two databases (ie client and server ) Using POST and GET.So i will be sending data to server using POST and reading data using GET.If anybody has sample code or any hint what type framework would be used ?? ...

Method that gets executed when the application becomes active

Hi all, I have a very basic doubt regarding the method that gets executed when app becomes active. So this is the sequence 1.User executes an application for sometime 2.User presses the home button and goes to use someother app for sometime 3.User presses the home button and resumes using my app again. My question is which metho...

How to convert every time zone in GMT +5.30?

I am creating an application. I am running a countdown timer and saving time into a database by converting time into a floating point value (double). Suppose I start the timer at 2.00 PM and set the countdown for 3 hours. After 1 hour I quit the application and on relaunch I am getting time stored from database. Count the difference betw...

I am not getting text macro completion in latest xcode (3.2.1)

I recently upgraded my machine from Leopard to Snow Leopard. Also I installed the latest Xcode 3.2.1 for Snow Leopard. Currently I am not getting code completion for built-in macros. For example 'if' followed by ESC gives completion list with #IF and ifstream. However I can insert it from menu Edit>Insert Text macro>C>If Block. Any he...

trouble popping view controller off of UINavigationController

I'm having trouble popping a UIViewController off of a UINavigation controller even though the reference to the nav seems to be correct and a count on viewControllers shows the right number. I have a UINavController that gets it's first UIViewController set and then the nav controller is presented in a modal view: workoutNavController....

iPhone Network Connection after kIOMessageSystemHasPoweredOn

I've built an app that runs in the background (jailbroken phone, Ver. 3.0/7A341) that checks my website every hour. When the device goes to sleep, I set a time to wake up if it stays asleep My app wakes up fine, then tries to make a network connection, but no luck. I've tried what iphone-3g-connection-enabling recommends (NSURLConnecti...

Extract or show some dictionaries for sequenced TableView

In a Tabbar app, I have a TableView to show all names of each dictionary of an array coming from an array like this : <array> <dict> <key>Name</key> <string>Name1</string> <key>CategoryA</key> <string>CategoryA1</string> <key>CategoryB</key> <string>CategoryB4</string> <key>CategoryC</key> <string>CategoryC8</string> </dict> <di...

UINavigationController viewController intra communication.

Whats the best way for UIViewControllers that are pushed onto a UINavigationController to communicate with each other? Method chaining back up to the root most parent view controller? Connecting references to other view controllers w/ IB? ...

Best way to check if an iPhone app is running for the first time

I want to check if my iPhone app is running for the first time. I can create a file in the documents folder and check that file to see if this is the first time the app is running, but I wanted to know if there is a better way to do this. ...

UINavigationItem.prompt appearing, moves the view below. How to listen for a new prompt?

I have a normal UINavigationController with a UIViewController contained in it, when my view controller has a prompt applied to it (via a UINavigationItem.prompt = @"some prompt"), the prompt is animating the UIViewController's view downward. My question is, is there an apple what to find out that a prompt will appear (and maybe the an...

how to sync audio in iphone sdk with NStimer?

I am running a countdown timer which updates time on a label.i want to play a tick sound every second.i have the sound file but it is not sync perfectly with time.how do i sync time with audio?also if i use uiimagepicker the sound stops how to manage this? if someone have tick sound like a clock has it would be great. ...

How to implement UIImageView-like delayed loading in UITableView

Hi all Background: I have a UITableView showing an image in each cell. These images are all part of a big pdf-file. So what I am doing is actually rendering little pdf-parts in those UITableViewCells, each cell displaying just one piece. Therefore I add a UIView to the contentview of the cell and render the view on demand. Rendering the...

Possible View Caching problem?

I'm building an iphone app and I've got a table view with some textfields inside the cells, the content of the fields is set in viewWillAppear (its a grouped TableView w/ 3 fields that are always the same). The content of the text fields is retrieved from getter methods that return values from various class variables. The problem I'm h...

encrypt data on iphone and dencrypt on a .net web application

Hey Guys, I was to encrypt data on the device and send it by http to our web server then decrypt the data on out .net web app. Is this possible? If yes, which encryption method I should use? and if their are any articles out there? Thanks ...

can't update text fields in a UIViewController that pushed onto a UINavigation Controller

I have a UINavigationController that gets UIViewControllers pushed onto it. In the first view there is a grouped table view which has 3 rows, each containing a UITextField with initial text set on viewWillLoad of that view controller. Tapping any one of the table view cells pushes the 2nd UIViewController onto the nav controller's stac...

Using tel: url to initiate a call doesn't return control

I have an app that worked just fine in version 2.2.1 of the iphone, but have ran into an issue when I upgraded my dev iphone to 3.1.2. Before, dialing a number worked fine, as when the call was ended, my application was loaded. Now, after I hit end call, it loads the default phone application. Does anybody know why this is? I've looked a...

UINavigationController animation problem

Hi All, I have a small problem with UINavigationController animation between two view. My application build more than two view, first view contains login information, second view contains root menu, last view contains sample data and so on.. My MainWindow.xib contains a UINavigationController component which is contains all navigation s...

iphone 3.1.2 sdk UIImagePicker for type movie not copying a thumbnail.

I have seen this question pop up a few times but the authors see to be satisfied with the wrong answer, so I will ask again. When picking a movie out of the user's gallery, I am given a MOV in the tmp directory but I am not given the thumbnail for the movie now in the 3.1+ sdk. In sdk 3.0, you get a jpg in the tmp folder but this beha...