In many situations, such as making the keyboard go away when the use clicks done, there are two options: set the text field's delegate to self, and adopt the UITextFieldDelegate protocol, and then use the method - (BOOL)textFieldShouldReturn:(UITextField *)textField; to resignFirstResponder and return YES. But you can also addTarget:self...
Hi, I have a tab bar controller with three tabs. Tab number two has a view containing two UILabel views. These are bound via InterfaceBuilder to IBOutlets in the view's controller.
It can happen that I set values to these labels before the user taps on tab bar item #2, hence before the view is loaded. What happens is that the view then ...
I'd like to make a glowing text that looks like if it was shining or emmitting light. Actually this would be done with some blurryness in the background. But I've found nothing in the iPhone SDK that would do it.
...
I am not sure what the problem is. My app is running fine on the simulator but when I try to run it on the iPhone it crashes during debugging or without debugging with signal "0". I am using the Texture2D.m and OpenGLES2DView.m from the examples provided by Apple. I profiled the app on the iPhone with Instruments using the Memory trac...
I am building and testing directly on a iphone 3.0 and it works fine. only issue is the JPEG files my app creates in the documents directory seem to be disappearing. This is odd because I have a sqlite db file in the same directory that seems to be there all the time.
The files disappear the first build after I take the photos and save ...
So I've been using:
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"/>
to get my HTML content to display nicely on the iPhone. It works great until the user
rotates the device into landscape mode, where the display remains constrained to 320px.
Is there a simple way to specify a viewport that...
Hello all,
I am looking for a sample code to implement the easing function in iPhone. I have a set of images getting animated over an UIImageView.
what I want to do is use some ease function to make them look like bouncing.
For example on click , a balloon gets bigger from previous size with a curve.
Like lets say from size 50X50 i...
I have a telephone wheel. On the touchend, it goes to his position with an animation.
Until the angle is less than 180°, it returns clockwise. No problem, with this code :
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView beginAnimations:nil context:NULL];
[U...
Hello,
I have decided to enter the iPhone App development arena and as such have a couple of questions:
Coming from a business management background and having no experience/knowledge whatsoever in developing, what would be the right way to start?
I am aware that I should learn Objective C, to begin with; as well as OOP etc... will re...
I found the zlib and gzip decompression algorithms, but I need to compress a whole directory and download it from the server. Would rather not go file at a time.
Thanks.
...
I am very new to IPhone development. I have upgraded my IPhone to the latest version 3.0.1 (7A400). I have also downloaded the latest version of the SDK - but the latest version of the OS that XCode supports is 3.0.1 (7A341).
Any ideas?
...
I'm calling valueForKey on an object. This returns an id which I tried to cast to a BOOL (because I know the value is a BOOL). But XCode gives the following warning:
"warning: cast from pointer to integer of different size..."
So what I ended up doing was this:
BOOL value = [[NSNumber numberWithInt:((NSInteger)[managedObject value...
Hi, I'm currently writing an Iphone application using Core Data and I get a EXC_BAD_ACCESS error during the [managedObjectContext save:&&error] code line. This crash only happens after I modify certain fields. More specifically my entity has two string fields (out of about 10 fields), that get their values from a the return of a modal vi...
I have a navigation controller based application and I'm running into a strange issue where a few of my view controller pushes are causing crashes upon "popping" the view controller.
I've narrowed it down to the line of code that releases the view controller after pushing it on the navigation controller's stack.
My code looks like this...
Which framework i need to import to compile if i want to use openssl/bn.h
i am getting compilation errors ("referenced from") for all BN functions
please help
...
If I have a set of custom UIViewControllers that I release in a high level application "restart" routine, would a good way to release their views be to set
self.view = nil;
in the dealloc method?
...
I'm interested in responding to when the user performs a standard Copy to the generalPasteboard as part of the default UIWebView control. I'd like to take some action in response to this.
Is this possible, or would I need to re-implement a custom copy control so that I can be sure to capture the event?
...
Despite looking at similar posts on this site and google, I just can't wrap my head around how to post to a php page from the iPhone. Here is what I want to do:
I have a php script, say at www.mypage.com/myscript.php that I could post to normally by doing www.mypage.com/myscript.php?mynumber=99&myname=codezy
This in turn will add a lo...
As the title says I'm currently trying to grab the posts from my Wordpress site and then load it into a UITableView so It can be viewed like that. How would this be done? Im assuming Im going to have to use XML but how..? I'd rather try RSS if I can? Or what ever way works!
Thank you so much for helping!
...
I am writing a simple game that animates a ball image quickly across a background image.
Would Core Animation/Quartz be sufficient for this scenario?
I don't really want to learn OpenGL ES if it is not going to provide any substantial benefit in this one off project.
...