iphone

iPhone Development, How to Programmatically Call a NavigationController back button from another tab?

Here's the setup: I have a tab bar controller with two tabs. There is a navigation controller on top the second tab, so that I can view details from a table. On tab #1, I have a button. When this button is pressed, it switches the selected tab over to tab #2. My problem is this: Let's say I go to tab #2, then I select a line from ...

iPhone App display name

If I have an iPhone app named: MyCoolApp How do I keep the bundle named: MyCoolApp.app But have the app name on that shows up underneath my icon read: My Cool App I have changed my PRODUCT_NAME target setting to be "My Cool App" and changed my plist CFBundleDisplayName and CFBundleName to be "MyCoolApp". So far my app name on the dev...

Javascript widget inspired by iPhone UITableView?

Cocoa Touch's UITableView allows a user to scroll through large numbers of data rows with good performance because it recycles table rows. Rather than create a GUI element for every single data row, a limited number of table rows is created, and simply updated with the relevant data as the user scrolls, giving the illusion of navigating ...

Trouble opening Mainwindow.xib in Xcode/iPhone Development

Hi, I was going through the Hello World tutorial for iPhone App. I recently bought a Macbook and have installed Xcode 3.2.3. The tutorial says that I should double click on MainWindow.xib and wait for few seconds to see an Interface builder getting opened. But nothing like that is happening in my macbook. Is there an alternate way to br...

webkit gotchas for android / iphone development

If I wanted to develop my mobile app's front end using js,css,html in order to target both Android and iPhone, what gotchas do I need to look out for? I'm not looking for the comparison of native vs web development as much as I'm concerned about performance and development issues. ...

when and where to put @class declarations

I am working on a project with several custom classes. I have a CardModel (NSObject) that has some integer properties to hold data, and a Deck (NSObject) that has an array to hold a bunch of CardModels and then a CardView (UIView) that has a CardModel as a property that I make when I select a CardModel from a Deck. And then I've got a ...

Cookies on Android/Iphone vs Desktop

I am in the process of building an mobile/web application. I want to use cookies for persistence, but I am wondering of the cookies in firefox workings the sames as say the mobile browsers and will it be recognized. Thanks in advance ...

Moving image while holding button

Hello everybody. I'm a beginner and I need some help in one of my first game apps. I know it's a common problem, but I haven't found enough information about it, so I would be thankful to have it now: I don't know how to accelerate an image by holding a button, only it works for me with the simple TouchUpInside way, so the object moves ...

App loads default screen, then either goes black or crashes

My app loads the Default.png file and then either crashes or goes black depending on which version I use. It ran fine in SDK3. I went to my console in xcode and found this... Pending breakpoint 2 - ""OneAppDelegate.m":33" resolved Pending breakpoint 3 - ""OneAppDelegate.m":82" resolved Pending breakpoint 4 - ""OneViewController.m":57"...

NSDate / NSDateComponent problem

Hello, Let's say we are the 15/07/2010, I would like to get the first day of the previous week, which is the 5 of July. I have the following method but it does not work. Seems that I have a problem with the weekday attribute... + (NSDate *)getFirstDayOfPreviousWeek { // Get current date NSCalendar *cal = [[NSCalendar alloc] initWithCal...

Unit Testing in XCode

Hi, I am trying to test some model classes that I've written with SenTest in XCode. I have dragged the model header and implementation files into the Compile Sources group within my LogicTests target, and my tests pass. The problem though is that I'm getting a ton of compiler warnings about no rule to process file such as: warning: n...

UIActivityIndicatorview freezes when application moves to foreground iOS4

Hi, I am experiencing an issue with activity indicator freezing when I move application to background and then bring it back to foreground. The application can be loading some data over the network when it is moved to background. Hence I display an activity indicator to the user. I have added the code to make sure that the task finishes...

Team provisioning profile alternatives?

I've got an iPhone app that uses push notifications, which means that I can't use a wildcard in the bundle identifier of my provisioning profile. This means that I can't use a team provisioning profile, which makes things difficult when several developers are committing code to Subversion. When I commit my code, I also commit my individ...

reloadData for a Table View in a View Controller

Hello I have a view controller that loads from an xib i created. It has two toolbars and a table view in that. I add this too the header file in the ViewController @interface FilterViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> { When I do [self.tableView reloadData] It does throws up an error ...

Programmatically Dismiss UIDocumentInteractionController OpenInMenu?

Hello friends. I am having much difficulty being able to dismiss (programmatically) my UIDocumentInteractionController's OpenIn Menu (Using the appropriate - dismissMenuWhatever method from the docs). I just can't seem to get it to work. Does anybody have any suggestions? Maybe I have an inadequate intelligence level? I am beginning...

Three20 TTLauncher Issues

So, I'm having some issues with my implementation of the Three20 TTLauncherView. I am using their code, not a fork (although I have heard of rodmaz's version), and I can't get it to work properly. This is what my app looks like. I removed the icon image, that's not the issue. The issue is, at the top there is no Navigation bar at a...

How is the location of a subView set?

I am using the standard facebook connect button with the method FBLoginButton *loginButton = [[[FBLoginButton alloc] init] autorelease]; [self.view addSubview: loginButton]; and It places it where I dont want it. How can I set that subviews location? ...

Xcode or iOS won't use my Icon-72.png on the iPad

I have created 3 files for the app icon: Icon.png, Icon-72.png, and [email protected]. [email protected] shows up fine on the actual iPhone 4. The simulator, however, only uses the 57px version. With the iPad neither the simulator nor the iPad itself uses the Icon-72.png file. Only the 57px version. Help! :) ...

UITableViewCell Swipe for Drawer

This is really more of a curiosity than a hard coding question. Both Facebook and Twitter both have a feature where swiping a UITableViewCell animates the cell off the side to reveal a drawer with more controls underneath. How is something like that accomplished? ...

Refer to an integer from one ViewController from another.

I'm unable to refer to my integer pickedItem declared in my RootViewController.h in my DetailViewController.m file. Not sure if I should declare this as a global variable, but tried unsuccessfully to do so. I think this should be simple, but I haven't got any other suggestions (from other posted answers) to work. Thanks in advance. ...