I have a UINavigationController that gets pushed a DetailsViewController. In this DetailsViewController, I want to use the toolbar that comes with every UINavigationController (atleast, since iPhone OS3.0).
So, in viewDidLoad in my DetailsViewController I create a UIBarButtonItem, I add it to an array and hand it off to the navigation ...
What kind of information is stored behind such an enum type thing? Example:
typedef enum {
UIViewAnimationCurveEaseInOut,
UIViewAnimationCurveEaseIn,
UIViewAnimationCurveEaseOut,
UIViewAnimationCurveLinear
} UIViewAnimationCurve;
I am not sure if I can safely add such an enum constant to an array. Any idea?
...
Hi all,
I have a UIToolbar at the bottom of the view. when I run the application using iPhone Simulator 2.2.1, the toolbar is displayed in place. But when I run the application using iPhone Simulator 3.0 the toolbar is shifted up from its place. Is there any way I can fix this ? I would appreciate any help.
Thanks,
Sarah
...
Consider this example:
zh_Hant_HK format = yy'年'M'月'd'日' ah:mm
Not sure if you can see it, but I see a lot of chinese symbols in there. I've got that string out from a date formatter, which corresponds to a Asian locale. Do I have to consider anything special when trying to get "character" by "character", i.e. looking at every char se...
Hi Everyone:
I am wondering if there is some way to replicate Safari (on the iPhone's) tab behavior of scrolling through the webpages. Is it an API or some code that makes this happen, and how would I create this in my own app? I saw this post: http://stackoverflow.com/questions/1220354/uiscrollview-horizontal-paging-like-mobile-safar...
There is an NSString method -characterAtIndex: which returns an unichar.
(unichar)characterAtIndex:(NSUInteger)index
I wonder if this unichar, which obviously is not an NSString, can be converted into an NSString or feeded to an NSString for comparing purposes?
And: Does an NSString internally just consist of an array of uni...
I have a loop that builds up a pretty large string. With every iteration a little string snippet is added to that string, and that string becomes bigger and bigger. Is there something better than using an NSMutableString and appending another string to that?
...
That's somewhat confusing. NSMutableString inherits from NSString, but does that also mean that I can pass an NSMutableString anywhere safely where actually an NSString is wanted? And can I assign an NSString to an NSMutableString? How would I get an NSString out of an NSMutableString to avoid problems, if any?
...
Hi,
I have two tabbar items(views) that use the same data, whats the best solution for getting the data?
Make two fetch request for the same
data in each view controller.
Make one fetch request in
appDelegate, and use
sharedApplication to get to the data
in appDelegate. I can use KVO and
notifications to notify the views if
the data h...
I am trying to figure out the best way to create a view like the app details screen in the AppStore app. I want a thumbnail and text content under it that all scrolls if the content is too long. Is this done in a tableview or a scrollview?
...
I want to quickly check to see if a file exists in my iPhone app's Documents directory (or any path for that matter). I can enumerate through the directory's files, or I can try to open a specific file. What's the fastest way? I just need to know if the file is there or if it does not exist.
...
Hi all,
I submitted my application to the App Store and I got that feedback,it is crashing on iPhone 3G running iPhone OS 3.0.1 and Mac OS X 10.5.8. I tested the application on the new SDK simulator 3.0 and replaced the deprecated methods. My question is, how to test the application on Mac OS X 10.5.8. ?
Thanks in advance,
Sarah
...
Hi,
I have an XML document that may have shift-jis encoded data in it and I'm trying to parse it using an NSXMLParser object.
Ordinarily I assume the document is UTF8 encoded and all is well - does anyone know if/how I can determine if an element is shift-jis encoded and then how to decode it?
Thanks
...
I have a bunch of images stored in my database as blobs that I need to include in a UIWebView. I'd like to do this directly -- without first saving them as temp files. Is there a way to display images in UIWebView with raw data instead of a URL?
...
I have an IPhone application that I want to attempt login and do some initial setup before showing the UI. I currently have my Default.png set to an image and I have a view that has that same image. When my app loads the Default.png loads and then my loading screen loads. The loading screen is the view for my root view controller in t...
Hi all,
My application was rejected because it is crashing on iPhone 3G running iPhone OS 3.0.1 and iPod touch running iPhone OS 3.0 and Mac OS X 10.5.8. ,I thought that iPhone apps should be tested only on iPhone . Why they test it on the mac?
I had some methods that was deprecated on SDK 3, and apple requires that the app should be...
Am tearing my hair out here. Have read many examples which describe how to get around this but none have helped me get rid of the problem.
Have a simple button on a UIView linked to an IBAction.
Code is this...
Contact.h
#import <UIKit/UIKit.h>
@interface Contact : UIViewController {
}
-(IBAction)buttonPressed:(id)sender;
@end
...
I am still in the process of getting myself acquainted with the iPhone SDK.
This is what I am trying to do :
I have a UIScrollView and each scroll view has an UITableView and I have implemented a custom UITableViewCell.
The desired functionality is initially there is no selection, then the user selects the row and scrolls and makes a...
I'm programming this game in openGL, mostly working inside an single EAGLView ( I'm not that familiar with Views and other Cocoa concepts, my work to this point only involved using opengl to draw my game and calculating the logic myself).
I'm being told for adding a ton of features:
Send mails to Your friends when You achieve certain ...
My problem is that I want to have a tab bar view with its children view controllers shown first. In the children view controllers, depending on what controls are clicked, I either want to A) drill down within the tab bar view (swiping away the child view controller) or B) drill down over the tab bar view (swiping away the tab bar view co...