I've tried this:
GDataXMLElement * body = [GDataXMLNode elementWithName:@"body"];
[body addChild:[GDataXMLNode elementWithName:@"request" stringValue:@"<![CDATA[ <hello> ]]>"]];
NSLog(@"%@",[body XMLString]);
And it outputs:
<body><request><![CDATA[<hello> ]]></request></body`>
But want it to be like this:
<body><reque...
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...
Hi all, I have a feeling this is due to some time zone not being set or something this is what I have:
NSDateComponents *theComponents = [calendar components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate:workingDate];
NSLog(@"%d", theComponents.day);
[theComponents setDay:3];
NSLog(@"%d", theComponents.day);
se...
I am using UIWebView to provide a simple browser in an app. When I go to Wikipedia the search bar at top of the page (mobile version) is never shown in the UIWebView. Scrolling down and back up does not make it visible.
I tried both cases (YES/NO) for scalesPageToFit but did not do anything.
...
How to spinning the CALayer on current location?
thanks in advance
...
Can I compile the same iPhone source code for iPad?
...
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 have used startMonitoringSignificantLocationChanges method to locate current location. Its working fine if the device is stationary but it is not responding while travelling and cell towers changed.
It gets initial callback. I am using this method
-(void)UpdateOwnLocation{
[locationManager stopMonitoringSignificantLocationChanges];
...
In iPhone development, I have come across these terms named
event loop, run loop
. Can some one explain explain what they are?
...
I'm developing a simple writing app for iPad.
I'm trying to compute the pixel-position of the cursor in UITextView. I spend a few weeks to design this, but I still couldn't figure out to do it.
In stackoverflow, Tony wrote one good algorithm to find the pixel-position of the cursor.
http://stackoverflow.com/questions/2633379/pixel-pos...
hello all.I need to display a document in a uiwebview.I was succeeded in displaying it,but i need to move the webview only vertically.I don't want the horizontal scrolling how can i achieve this..Please help me
...
I just wanna clear some concept about NSuser Default and Sqlite.
plz suggest me, when to use NSUserdefault and when to use sqlite.
can i use NSuserdefault for some large data??
...
I am developing an iPhone application in which I need to show an image at a specific Latitude & Longitude on a Map. The requirement is - Even if the user zooms in or out on this map screen, the map control should automatically center itself after the zoom, to the same Lat & Long. I am using MKMapView.
I have tried to go through all avai...
Hi I am getting memory leak in Instruments for the following line of code .
NSArray *itemsList=[[NSArray alloc] initWithObjects:@"Love",
@"Hate",@"Happy",@"Sad",
@"Desire",@"Anger",@"Hope",@"Fear",@"Silly",nil];
I am using the below code:
arrayList is also released in dealloc block.
NSArray *itemsList=[[NSArray alloc] init...
Kinda confusing title but oh well.
I have a UIScrollView in my viewController, in that is 3 UIViews with some buttons in each. I download data from a server and populate it into the view and this works as soon as you start scrolling the UIScrollView, but sometimes the buttons only partially load.
Usually its the button label without my...
Hi
Anyone has any experience with GameKit GKErrorDomain Code 3? I receive the error message when I try to upload a score to a leaderboard in the Sandbox. The iOS reference library just says that Indicates that an error occurred when communicating with Game Centre The Here is the full error message:
Error Domain=GKErrorDomain Code=3 "Th...
Hello All,
I need to read the image from document folder and prepare UIImage out of that. but when I call this function everytime memory get increasing and for large scale image this scale is large. following is same code
-(UIImage*) GetSavedImageWithName:(NSString*) aFileName
{
NSArray *paths = NSSearchPathForDirectoriesInDomains...
i have a1.png image. i wants to apply red/green/any color on that image.
can anyone has solution ??
...
I'm trying to get this animation to delay for 60 seconds and take 125 seconds to complete it's animation cycle. then repeat infinitely. the problem is that the delay only lasts 20 seconds. Is there a limit on the delay you can specify? or, perhaps a better way to do what I'm attempting?
here's my code:
- (void)firstAnimation { ...
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...