Hello,
I have a subclass of UIAlertView with 2 UITextField for login / password.
My problem is that when I have finished to type my login and change the focus to the password field, there is a cursor on the login field and on the password field, but the focus is on the password field, so my question is, how can I make the cursor disapp...
hi all,
i'm writing some code for getting some values including course
-(void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {
//somecode
NSString *dirString = [[NSString alloc] initWithFormat:@"%d", newLocation.course];
int myInt = [...
I need a way to alter the UITableView row height differently, but without implementing the delegate method -tableView:heightForRowAtIndexPath: because it causes me some serious performance problems in an indexed table with 15.000 rows.
Now the thing is, that every third table is 10 units bigger. than the others. These are a different ki...
I have some code in my iPhone app like that :
//fromView is a UIImageView.
//self is a UIView.
UIGraphicsBeginImageContext(fromView.bounds.size);
[fromView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *dummyFromImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageCon...
Is there a programatical way in which an In App purchase is refunded back to the user?
I have an application with a certain buyable feature. The user buys it but somehow doesnt like it. Is there any programatical way in which I can make the user get back his spent money?
...
I made a view-based project from a fresh template. There's a UIViewController which is created with an XIB.
In the implementation I uncommented that and added an NSLog. But this is never called:
// The designated initializer. Override to perform setup that is required before the view is loaded.
- (id)initWithNibName:(NSString *)nibName...
I have an app where it seems to me that memory is not being release but I am not sure how to analyze this problem.
'Analyze' in xcode shows no problems and 'Instruments' does not show any memory leaks.
As far as I have seen, it is not recommended to look at the retain counts.
How can I find the problematic objects? I have added printo...
Hi,
I'm trying to make a UITableViewCell that has a group color panel on the left. The gradient color part I think I can handle, but I can't work out how to get it to clip correctly at the round corners.
I'm after something like this:
I've tried a custom draw UIView added as a subview of the cell's contentView, but it didn't clip. ...
Hi there- think I may need an iPhone guru with some math skills for this one. I have two map views on one page, call them map A and map B. When the user updates map A, map B gets updated automatically, and vice-versa...
Where it gets tricky is that when the user updates map A (drag/swipe/zoom), I need map B to update so that the coord...
hi i am trying to use nsuser defaults to save some default values in database. I am able to save the values in the nsuserdefault(even checked it in nslog).
Now i need the values in app delegate when the application is restarted. But i am not getting anything in the nsuserdefault. Following is my code from my class where i save the values...
hi, i saw this post today: http://stackoverflow.com/questions/112796/how-to-view-contents-of-nsdictionary-variable-in-xcode-debugger. i need to see the contents of a dictonary but i only know the "key"...is there a way i can spit out the details like a print_r in php? po gives me the object, but i would like to go deeper
po 0x2027c0
NS...
I need to get the current scrolling position of an UIScrollView. How could I do that?
...
i have this in the superview:
mySubView = [[MySubView alloc] init];
[self addSubview:mySubView];
[mySubView release];
then at some point later, in the sub view, this:
[self removeFromSuperview];
when i debug it, i notice that the dealloc for the subview is never called, even though i'm fairly sure the reference count should be 0. a...
Hello,
I'm trying to figure out the best way to perform a fast search using an UISearchDisplayController.
I have a plist file with more than 36000 entries. I load this file in a dictionary and I perform the search in this dictionary. It works but it's kinda slow and there is lag between each touch event. I want an autocompletion effect...
Hi i am developing an app for my QA department. I need to programically get how many phone numbers are there in the entire address book. No user input. Just click a button and then get how many phonenumbers are there in the ENTIRE addressbook.
...
How can I compare a password.text to text password stored in the database
...
In -tableView:heightForRowAtIndexPath: I'm changing the height for a cell dynamically during usage of the table. But I don't want this to happen like BAAANNGGG..., I want it nicely animated. Where would I put the animation block? Would that go just around the -reloadData call?
Well, at least this does nothing:
[UIView beginAnimations:@...
Is there a way to change the left/right margins on a table view? The cells seem too wide on iPad.
...
Hi,
I am a beginner. I tried to use some synchronous FTP downloading (in order to create a file on the iphone from a file on the ftp server) in an application but I am not able to do it.
I read the doc (and CFTPSample) and I managed to use asynchronous download but not synchronous. Can anyone help me?
Cheers
...
I want a single startup view with a button and a welcome screen. When the button is pressed I then want to navigate to a second view which contains a table view and toolbar.
I've tried creating a ViewController but my button is shown on all views. I just want a single view, then when it's pressed i go to the next view and the 'real' ap...