Hi Everyone:
I am wondering if there is some way to make an iPhone application where when a user clicks a UIButton, it to display an alert box about the item and then gives the user an option to purchase it. I see a lot of documentation on Apple's site regarding creating a view to store all of the choices of what to buy, but I don't re...
Been starting to work with Core Data a bit, and while I've figured out how to use it in regular Cocoa applications, it seems it works a bit differently in Cocoa Touch. How do you bind entities to objects such as table cells in Cocoa Touch?
...
OK, you know the playback controls in the iPod app. They are simple Play/Pause, FFW, REW image buttons, but when touched upon, they show a glow effect. I want to use them in my own app, so it will have the same look and feel: w/ the same glow effect. Surely I could recreate all of them in PS with the glow effect image added to UIControlS...
I need to allows users to download multiple images in a single download. This download will include an sql file and images. Once the download completes, the sql will execute, inserting text into an sqlite database. This text will include references to the download images. The text and images are rendered in a UIWebView.
What is the ...
Hello Animators!
The scenario: The user has touched and moved an image to a certain position, he/she then release the object. It should now in a realistic way fall to the bottom of the screen, see this video for some inspiration.
The touching and dragging parts are already implemented using:
- (void)touchesBegan:(NSSet *)touches withE...
I'm would like to create a table that displays the date in full for the section headers, eg. @"EEEE dd MMMM yyyy". Then in the the fast user index on the righthand side use the @"MMM" value to provide quick access to a given month.
I can get the index to work using the default value of first character from the core data. So the fetchedR...
I've added a feature to my app that allows the user to save a business's contact details to the address book; however, to guard against adding multiple entries I want to check that the entry doesn't already exist.
Any idea how to do this? The iPhone developer documentation seems a little unclear. I'm using the C api to add the contact.
...
I'm having some problems resizing a UITabBarController as I only want it to take up the bottom half of the screen. It seems to force itself to display the full height of the screen (minus the status bar if showing).
I have tried subclassing it and modifying the controller's view's frame on methods such as viewWillAppear; but it's just ...
A developing consensus among the iPhone developer community is that Apple has recently started using a static code analysis tool to detect use of undocumented API calls.
Just for the sake of the argument, I wonder if it would be possible to work around this tool by generating the invocation at runtime like this:
NSString *const aMethod...
I have an NSDecimal and need this as technical string, i.e. with no formatting in any way. Floating point should be a "." if there is any, and minus sign should just be a "-" if there is any. besides that, there should be no formatting going on like grouping or chinese numbers.
I was looking for 2 hours through the SDK but it seems ther...
Hey guys,
I need to use UIPagecontrol for my application, and I'm not sure how to get started. I'm a beginner, and the examples that apple gives me are pretty complicated. All I need are 3 pages with different views for each of them. Can anyone help me out here?
P.S. remember that I'm a beginner!
:D
thanks
...
I'm struggling to find a good solution to this problem. In a view controller's -viewWillDisappear: method, I need to find a way to determine whether it is because a view controller is being pushed onto the navigation controller's stack, or whether it is because the view controller is disappearing because it has been popped.
At the momen...
I've been pondering over this question for a long time already.
On the one hand, Interface Builder offers a really easy way to design the interface and wire the elements up with objects in code.
On the other hand, in larger projects, Interface Builder becomes a hassle to maintain.
Any suggestions would be greatly appreciated.
...
Hi Everyone:
I have a UITextField that I would like to "automatically" adjust its bounds size in order to make space for the string added in the field. However, I would like it to max-out in terms of width at a certain amount. What is the best way that I can go about doing this?
Thanks for any help.
EDIT:
TestingView.h
#import <UI...
This ought to be brain-dead simple, but for some reason it's not.
I built an extremely simple test app. It just has a very simple subclass of UIViewController, whose view is a UITextView, which is loaded from a NIB. UITextView is a subclass of UIScrollView, so I would expect some fairly similar behavior.
My view controller overloads ...
can anyone give me sample code to transfer photos from one iphone to another using bluetooth
...
I have a UIWebView (webview) with one link in it. I have implemented UIWebViewDelegate for this class. When I click the link, the page loads but I get an error.
- (void)viewDidLoad {
[super viewDidLoad];
webview.delegate = self;
NSString *html = @"<html> \n"
"<head> \n"
"</head><body> \n"
"<p><b><a href='http://developer.apple.com/mac...
I have information I'm planning to sync between an iPhone application and a desktop application via a PHP script; is there a method of calling the script in the background to send data to the online database and then retrieve the data from the script?
...
I have mapkit view, how i can convert latitude and longitude to screen coordinates?
...
Hi There,
I am having a strange effect with touches. Sometimes when I swipe the screen slowly the touchBegan and touchMoved get called but not the touchEnded, which kinda screws up my view movements. How is it possible that touchEnded doesn't get called? And my finger leaves the screen without running off the sides or anything like that...