iphone

How to recreate a UIViewController stack when the root view controller is a UITabBarController?

Hello, guys. I have an app that if it is quit in a certain view, I want to restore this view exactly where the user left. My applicationDidFinishLaunching is very simple at the moment: - (void)applicationDidFinishLaunching:(UIApplication *)application { // Override point for customization after app launch [window addSubvi...

How to communicate between objects

Still having trouble with this language. Ok, let's say I have two objects. The first is my application delegate, the second is a custom view containing the various buttons that make up the main menu. When a button is clicked, it is the menu that responds. However, I need to make use of certain instance variables in the application deleg...

CFPropertyList usage

Hi, i am trying to return a list of users whose accounts have expired from my server to my iphone objective c app using CFPropertyLIst but the data returned in the NSURLConnection callback is always null. I think my use of CFPropertyList may not be correct but can't work out why not $query="SELECT user, UNIX_TIMESTAMP(created) AS create...

iPhone -- is it possible to inspect the frame of a UIView in the Xcode debugger?

When the debugger is stopped at a breakpoint, I can't find the frame of any of my UIViews in there. Is it possible to do this? EDIT: starting a bounty due to the lack of response. Just to be clear, what I am looking for is a way to see the frame without adding in extra debugging code. Also, if the answer is "no you can't do it", boun...

Use dictionary with didSelectRowAtIndexPath

I am trying to get the trail name from the selected cell and pass it on to the next view in didSelectRowAtIndexPath. How would I go about this? http://pastebin.com/bgXNfjie ...

Direct communication between iPhone users

I'm new to iPhone programming. So far I've only written a couple of simple apps just to get the hang of it. In a short time I will have an assignment to write an app that will let iPhone users communicate directly using short messages, and probably they will add a requirement to be able to send files to each other attached to the message...

UITableView Random White line in section footer when returning properly sized footer

I have a UITableView inside of a View created from a NIB. the table has one section containing 6 rows and 1 footer. when i use: - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{ return 80; } to return the height of the footer, which is being loaded from the same NIB. the UITableViewCell ...

Advice for a mobile app for reading a publication

I'm considering developing apps for Android and Windows Phone 7 that allow the user to read content from an online producer (newspaper/magazine/blogs etc). This provider has a REST API that should allow for straightforward access to the content. A few questions I have: I saw an OData demo, where getting data from a feed was super easy,...

navcontroller refresh webview

I have two views controlled by a uinavigationcontroller. the first view has a UIWebView and has button that takes the user to the second view. The user can get back to the first view by tapping the back button on the nav bar. however the webview's content is not current. How can I refresh the content in the first view's webview when comi...

AudioQueue gaps in playback

I'm struggling with an AudioQueue audio player I implemented. I initially thought it was truncating the 1st 1/2 of audio that it played but upon loading larger files I notice gaps every other 1/2-1 second. I've run it in debug and I've confirmed that I'm loading the queue correctly with audio. (There are no big zero regions loaded in the...

iAd and view controllers

Apple's documentation on the UIViewController class has this to say: Note: You should not use view controllers to manage views that fill only a part of their window—that is, only part of the area defined by the application content rectangle. If you want to have an interface composed of several smaller views, embed them all in a single r...

iAds application crashing on OS 3.0 - 3.2

how to set iAds so the application does not crash on older OS (3.0 - 3.2) ...

unrecognized selector sent to instance 0x5d18d60... i'm going crazy!

Hi everybody. I'm going crazy with this my little app... Please help me!!! this is the source code of the app: Smoking.zip It only saves a .dat file with an NSMutableArray. Now, the first time you will launch the app, try to click the cigarette button sometimes: Everything should working fine. Ok, now close the app, re-open it, and cl...

How to insert horizontal line in iTunes app description?

I'd like to have something like the html tag: < h r > Can someone tell me how to do this? I've seen other apps do it. Thanks ...

Reorder names in plist

I have a dictionary plist. That dictionary has A-Z arrays which have names in them. I would like to alphabetize the names in each of the arrays and save that order back to the plist. Is the best way to enumerate through the keys and do a sort on each of the arrays? ...

How can I prevent the display on an iOS device from dimming and turning off?

Hello. I'm diving into iOS development and am building my own alarm clock app to become familiar with platform and SDK. I've noticed some alarm clock apps in the app store keep the screen from dimming and/or turning off when their app is running. How is this implemented? Thanks so much in advance for all your help! ...

NSString is empty

How do you test if an NSString is empty? or all whitespace or nil? with a single method call? ...

UITableView with grey lines on the side when trying to add a background. How do you get rid of these lines?

How do you get rid of these lines on the side of the table? Thanks in advance for your help. ...

unrecognized selector sent to instance... Source code link inside

Hi everybody. I'm going crazy with this my little app... Please help me!!! this is the source code of the app: Smoking.zip It only saves a .dat file with an NSMutableArray. Now, the first time you will launch the app, try to click the cigarette button sometimes: Everything should working fine. Ok, now close the app, re-open it, and cl...

Bundle ID Suffix? What is it?

I'm new to the iPhone submission process. Apple asks for the Bundle ID Suffix. What is this? Not sure what to put here and what the significance of it is. ...