Here is my code it looks ok
But it crash when running
NSString *urlAddress = [NSString stringWithFormat:@"http://www....php"];
NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
[request setURL:[NSURL URLWithString:urlAddress]];
[request setHTTPMethod:@"GET"];
NSData *returnData = [NSURLConnection sen...
Hello.
I have an SQLite database in the first version of my iPhone application (which is on the app store). Now I want to roll out the second version of the application, which also has an SQLite db in it.
I understood that upon update, the SQLite database is removed and then the new one is added. I don't want this to happen, since that...
I using something like this : [tmpArray insertObject:something[i] atIndex:i];
But I got a MSG : passing argument 1 of "insertObject:atIndex:" makes pointer from integer without a cast.
What should I do to fix it?
...
I want to creat an UITableView which each cell (UITableCell) in this table can be moved left or moved right (System will be notified when user touchs down the cell and moves finger to left or right). Anybody can tell me how can i do it :) Thanks :)
I want to build a Table which each TableCell in it become a menu likes image bellow when...
I have two animations in a custom UIView, anim1 and anim2. Anim1 sets its delegate to self and there is an animationDidStop method in my class which triggers Anim2. If I want something else to occur when Anim2 finishes, how do I do this? Can I specify a delegate method with a different name?
UPDATE
I declare two animations as iVars:
C...
Hi
Im trying to bring the ripple effect seen in the dashboard application to iphone. My idea is whenever i place a button in the layout view there should be ripple effect around the button.
however Im able to bring the ripple effect for the whole view but I needs the effect only around the button. I tried the following code. I don know...
Hello,
Please tell me how to
Get the current working directory's absolute path
If this is the absolute path
/Users/iphone/Documents/Archive
how to convert this path to relative path?
How to check if directory exists at patricular path programmatically in Objective-C and if it doesn't exist how to create it programmatically? i need t...
In my ~/Library/Caches/ directory, I have a symbolic link to my app's bundle, and some symbolic links to images (e.g. "big_picture.png" is a symlink to "small_picture.png"). When I try to check if the symlinks exist, using the NSFileManager's fileExistsAtPath: method, it returns NO, even when the symlink does exist, and it links to a fil...
EDIT: I found the problem, which was totally unrelated to the below. It was due to me doing a bitwise comparison that I failed to mention below - I thought it wasn't relevant - I removed this (and found an alternative solution) and my query now executes in < 1 second on device.
I'm currently working on my first iPhone application which ...
Hi,
I need some help regarding applying the tint effect for an UIImageView basing on the slider value.
I had used oepnGL for this logic. But i find some problem with open GL. So i taught to do without openGL.Can anyone help me in getting this logic. As if i'm new to this technology, i don't know how to sort this out.
Thanks in advanc...
NSMutableString *str, *str1;
//allocation here
i am using
[str appendString:str1] is not working.
[str appendFormat:str1] is not working.
So, how to append a NSMutableString with another NSMutableString.
@str is an empty string initialize to nil. str1 has some value. [str appendString str1] returns null
...
I am trying to move my view when the user selects a text field so that the text field is still visible, which I have achieved. I am also using a control event to ensure that the text field is not empty before enabling a button.
Using
[longTextField addTarget:self action:@selector(updateAnswerButtonEnabled:) forControlEvents:UIControlEv...
I'm developing an iPhone application and I need to send some information to an url from a textview and 2 texfields, using the HTTP POST method. (to, subject, message). How do I do it? I understand it is something with NSURLRequest, but I didn't find anything that could actually help me. So if you could please include a clarifying code ex...
hi i am working with Mapkit and i have to show annotation in the map but am not able to display the annotation hers my code plz tell me where i am going wrong
@interface MyMapView : UIViewController <MKAnnotation,MKMapViewDelegate>{
MKMapView *Obj_Map_View;
MKPlacemark *pmark;
MKReverseGeocoder *geocoder1;
}
@end
#import "MyMapView...
Are there any methods in objective C for converting byte to int, float and NSString?
...
Hello everyone,
i was just wondering if there was a way to change the fontSize of a row in a uipickerview
for a specific component and not for all of them. Also the different components still have to be able to display different things and not the same.
Does anyone have a solution for this problem? Thanks in advance!
...
I was under the impression that adding a subview to a view goes like this:
UITableViewController *sitesel = [[UITableViewController alloc] initWithStyle:UITableViewStyleGrouped];
sitesel.view.frame = CGRectMake(0,0,100,100);
[self.left addSubview:sitesel.view];
[sitesel release];
But it seems I should not release the sitesel (the cont...
Hello,
Why does the following code output: Dday: (null)
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"EEE HH:mm:ss"];
NSDate *date = [dateFormatter dateFromString:@"Sun 15:00:00"];
DLog(@"Ddate: %@", date);
If I use the format HH:mm:ss and string 15:00:00 i get a valid date...
Cheers...
Hello everyone, I'm trying to build a project using xcode. The project is linked with a dynamic library and everything works fine when building in simulator mode.
My problem is every time i try to build in device mode i get the error
"id returned 1 exit status" (which is usually a lib link error).
I also get the warning "myLib.a file ...
I have a UIView subclass called Card that I move around on my board and drop on hot spots called slots. When I drop the card I use the hitTest to figure out if I am dropping the card on one of my hotspots. I want to get a property of that hot spot but I am having trouble getting that to work properly. My only guess is the hitTest return...