Normally we use the resignFirstResponder to hide the keyboard in the iphone apps.
For example, when we use a UISearchBar, after the user click the search button, we hide the keyboard by implement the searchBarSearchButtonClicked function like this:
-(void)searchBarSearchButtonClicked:(UISearchBar*)searchBar{
NSLog(@"Search B...
This is probably a really dumb question, but I can't seem to figure it out. My iPad application supports landscape and portrait orientations -so far so good. but when I'm in landscape mode, if I switch from one view to another there's a little rotation animation, even though I didn't rotate the device. It is as if the UIView I'm loading ...
Hi,
currently i'm trying to access the files that are transferred using the new ios feature introduced with 3.2.
- (NSString *)getPrivateDocsDir {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
documentsDirectory = [do...
I'm looking in open source implementations on top of the In App Purchase, maybe with the server-side implementation.
I know about http://urbanairship.com, but I prefer do it in-house.
...
I have following code that I use to play a selected portion of a movie clip. The movie plays okay. But the scrubber bar does not reflect the correct start stop time. Also, the forward and rewind buttons take the clip beyond the segment that was specified. Why is this and can we fix it?
TIA.
MPMoviePlayerViewController *mp =
[[MPMov...
my encryption is working but i cant decrypt kindly suggest what i am doing wrong here
NSString *passphrase = @"hello";
NSStringEncoding myEncoding = NSASCIIStringEncoding;
NSString *alphaStringPlain = @"cell";
NSData *alphaDataPlain = [alphaStringPlain dataUsingEncoding:myEncoding];
NSData *alphaDataCypher = [alphaData...
I am managing my own UINavigationBar. I need to do this due to extensive skinning. The documentation for UINavigationController warns that there are limitations to skinning the UINavigationBar when used with a UINavigationController.
I have put in extensive logging and from everything I can tell, pushing the "Back" button in the UINavig...
Hello
I'm a begginer developing apps for Iphone and was wondering if is possible to do the following:
I have an image .png wich is a simple draw of a figure bounded with black edges and empty areas. I wonder if there is a method or a mode to fill the closed empty areas of the image.
Its like as the pot of MSpaint filling.
I have thi...
I have a application which contains a moving image and i want to animate the image using a my custom animation.
How can i associate an IBAction event with the image?
How can i detect the coordinates on screen where the user touched the image?
Please Give Your Suggestions.
Thanks in advance and Your Suggestions are Most Welcome.
...
Hello Everybody,
it seems my Problem isn't a problem for anybody eles because I havend fount anything about it.
so it maybe isn't such a big Problem but for me it is.
I have this MutableArray filled with alot of data from an XML file.
-Name -Age -Address
The search goes for the Name, and the filtering works pretty fine so far.
what ...
I've been coding with the iPhone SDK for nearly a year now and managed, up til now, to avoid Core Graphics. My question might therefore look quite simplistic.
I need to implement a class that resembles a real-world 'folder tab'. Here's a mockup ..
I've been getting by with UILabel, and have tried to subclass it, implementing a drawRe...
To animate multiple objects in a view, do we have to use seperate timers for each of the object?
Currently I have four objects for which I am using four timers. How can I do it using a single timer?
Thanks!
...
Hi All,
I am trying to implement a list of items on the iphone in which each item is a range of images that can be viewed by users by simply sliding across.
I've been able to create the list framework using the UITableview and linking its datasource to my UIViewController.
All I need to know now is how to place images in each table ro...
note: This is an expansion (and clarification) of a question I asked yesterday.
I am conducting a research project where I want to record all of the user's touches in the iPhone app. After the experiment, I will be able to download the data and process it in either Excel or (more likely) Matlab and determine how many times they clicked ...
Hi
Is it Possible to add a glow effect in a UISegmentedControl like how its done in UIbutton using setShowsTouchWhenHighlighted:YES?
Thanks
...
How can I test multiple iOS versions in the Simulator? I can only seem to test iOS 4.1. I would like to be able to test 3.x versions in the simulator as well.
...
I was able to save an NSMutableArray of custom objects to NSUserDefaults by implementing NSCoding in the custom class. However, now I want to save an NSMutableArray of these arrays. The compiler complains when I try to do this. How can this be done?
...
Is there a way to tell the system to cancel all touch event sequences that are currently happening in your app?
In one part of my app, I show a new view when a user selects a particular table cell. But, I want to make sure they aren't simultaneously touching any other buttons. For example, if they are holding a toolbar button while th...
An iPad project I have been working on has become bloated with a huge number of files. The application is a prototype and we are considering ways to prevent this when we rewrite it.
One of the members of our team suggests dividing all of the components into separate Xcode projects which will be included in a master Xcode project.
Is t...
I have a UIButton defined within a tableviewCellWithReuseIdentifier.
The button works but it's very touchy. If I just tap the button it works. Pressing it any long fails to trigger the action, even though it does flash showing that it knows it was pressed. Why is this happening? More importantly, how can I fix it.
Here is the code for ...