iphone

Apps crashing after force shutdown

Do all apps crash if you load them in the simulator - hit the home key to take you out of the app - double click the home key to bring up the multitasker - hold down the app you just loaded to force close it - and then try to open it again through the screen on the simulator? My app keeps doing this so i loaded a stable app (an exercise...

UITabelView reloaded from NSXMLParser (iphone SDK 4.0)

I am creating application that simply reads data from an XML file and displays it in a table view. I created a "refresh" button when clicked i want it to redownload the xml file and display it again however it seems to crash my application if there is a XML file already downloaded. - (BOOL)application:(UIApplication *)application did...

iPhone OS 4.x - background TCP sockets are not responding

I'm trying to implement the background mode for VoIP application using the new mechanisms provided by iPhone OS 4.x Still without success... Application remains silent in the background mode when some data arrives from the server via TCP socket. According to the documentation the following two things have to be done: Add "voip" value...

streaming video FROM an iPhone

i can get individual frames from the iPhone's cameras just fine. what i need is a way to package them up with sound for streaming TO the server. sending the files once i have them isn't much of an issue. its the generation of the files for streaming that i am having problems with. i've been trying to get FFMpeg to work without much luck....

Iphone substring causing memory leak

Hi All, Im just wrapping up my app, so im onto the stage of running instruments to identify leaks in the app. Ive come across a leak that I cannot work out why it is being registered as a leak. I have the following lines for example: NSString *imageType = [[[NSString alloc] initWithString:[loopString substringToIndex:[loopString rangeO...

Perform an action when tabBarController changes

I have a tabbar application that has one screen that displays statistics based on the data presented in the tableviews of over tab screens. I would like to refresh this view once the stats view becomes selected again. I have implemented the tabbarcontrollerdelegate protocol to take an action when the viewcontroller.tabbaritem.title ise...

Style question: do you set your nav controller for all the child view controllers, even if they're not the top level view that is on the nav stack?

Let's say you have a tab view controller on the navigation controller view stack. (For the sake of argument.) Your tab controller has an array of view controllers for each of its tab views. Your tab controller's navigationController is clearly set to the nav controller (since its view is on the stack.) But would you set the navigationCo...

TableView not populating until I scroll past the cell when height of cell is changed

What I've done is created a custom TableCell view that gets populated with information from an array of objects. Each TableCell gets loaded in the - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"CellIdentifier"; Cell *cell = (Cell *...

iPhone force orientation

First - I read all similar topics and non of them work for me. I have few View Controllers. And I change them by that code: - (void)flipToAzbukaMenu { AzbukaMenuController *aAzbukaMenu = [[AzbukaMenuController alloc] initWithNibName:@"AzbukaMenu" bundle:nil]; [self setAzbukaMenuController:aAzbukaMenu]; [aAzbukaMenu release];...

How to have UISearchBar scope bar always visible?

Hi everyone. Here's my latest problem with the iPhone SDK. I've got a UISearchBar and its delegate all set up. Also, when I load my view, I call self.searchDisplayController.searchBar.showsScopeBar = YES; That way, when my view is first presented, I see the scope bar, as expected. But if touch inside the search bar and then outside ...

How do I set a view programatically for my tabBarController?

I have a tabBarController xib. I've set the first item's class to a view controller I made (.h and .m files, no .xib). When I try to push the tabBarController, I get a warning saying the tabBarController "view outlet was not set". I'm not sure how to set the view outlet, since I am loading from another view. I'm expecting the default gr...

Adding UISplitviewController to nib file of universal app, object not showing

So I've upgraded my iphone app to a universal app and am trying to add a uisplitviewcontroller. In MainWindow-ipad.xib, when I try to drag an object to the window, uisplitviewcontroller isn't an option. Furthermore, the screen size is the iphone's dimensions, not the ipad's. How do I get this to work with the universal app? Thanks. ...

How to remove a UITabBar badge after the user clicks another tab?

I want to remove a badge as soon as the user clicks another tab. I am trying to do: - (void)viewDidDisappear:(BOOL)animated { [super viewDidDisappear:animated]; UITabBarItem *tbi = (UITabBarItem *)self.tabController.selectedViewController.tabBarItem; tbi.badgeValue = nil; } But it doesn't work. ...

UIToolbar push view issue

I've created a UIToolbar and added it as a subview of the navigationController. The problem is it doesn't disappear when I do push so I hide it on push but the makes it just disappear which makes it look tacky. I thought about animating it but I am finding it hard for the animation to be exactly like the push and pop animation for the na...

Potential leak of an object allocated in iphone

Hi, In my application I m using following code below:- NSArray* toolbarItems = [NSArray arrayWithObjects: [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(done)], nil]; [toolbarItems makeObjectsPerformSelector:@selector(release)]; For that it ...

How to Setbackgroundimage for button only on one uitableviewcell but not others?

Hi Guys, This problem drove me crazy for couple of days. I have a customized uitableview cell with 5 buttons on it. And each button has three images. 1 the original one. 2 When user tapped on it,the image will be changed to "Selected.png". 3 When user double tapped on it, image will be changed to the 3rd one. When user tapped on a b...

Respond to applicationWillEnterForeground in a UIView

I have a UITableView that loads remote data from the network. I have logic in viewWillAppear to handle refreshing the data when needed based on state changes and a TTL for the data set. This works fine within an app "session" but isn't effective when the user exits the app to the background and later restores it directly to this view. W...

Is it possible to change/set the alarm clock from a different application on the iPhone

Is it possible to access information like the alarm clock time and change it from a different application on the iPhone. And if its possible to do it, can it be approved by the app store to sell it? ...

UITabBarController + UITableView = Errors!!!

Hello, I am trying to figure out how to use a UINavigationController, UITabBarController, and UITableView together. I started with a Navigation-based app, and at one point push a UIViewController (called CarViewController) onto the navigationController. I want to use a TabBar within the CarViewController, so I dragged a UITabBarContro...

iPhone SDK versions

What is the newest iPhone SDK version available for 10.6.0? ...