I just referred to the Q & A at iOS reference for NSDateFormatter.
Link: http://developer.apple.com/library/ios/#qa/qa2010/qa1480.html
Here is my problem I get a string from a webservice which is of this format:
"dd-mm-yyyy xx:xx:xx AM"
My actual purpose is just to use the date and not the time at all. But I just use the same format ...
When I make a request to a particular website, I get the XML response as desired on the simulator but I get a redirect page on the device. I think this is because it is detecting that I am using a mobile browser (similar results occur through Mobile Safari), but I'm setting the user agent string of the request to my laptop browser's UA ...
Hi every one , i create a custom backspace button but my problem is my back button works great in order to delete character from middle of words but just remove 1 character after that (removing letters) , comes back to the end of line it means doesn't stay where the cursor is, here is my code :
NSRange deleteRange = textPad.sele...
I'd like to be able to take a photo from the iPhone's camera, select a polygon within that photo, crop the photo to match, and then fit the resulting image to the screen.
What user interface element would you suggest for me to start doing this?
I'm a Java programmer and just getting started with the iPhone, so I'm not sure what to use....
I've got a stack trace showing a crash responding to a memory warning:
Thu Oct 28 00:42:55 iPhone DTMobileIS[10853] : _memoryNotification : {name = (null), num = 1}
Thu Oct 28 00:42:55 iPhone DTMobileIS[10853] : _memoryNotification : {
OSMemoryNotificationLevel = 1;
timestamp = "2010-10-28 07:42:55 GMT";
}
Thu O...
Hi, I really need to know of a way to get the current users device:
1. Active Memory
2. Inactive Memory
3. Wired Memory
4. Free Memory
5. Total Memory.
Any information, code or anything is helpful.
Thanks In Advance.
...
I have an NSString that already contains a pList.
How do I turn it into an NSArray?
(WITHOUT saving it to disk, only to reload it back with arrayWithContentsOfFile, and then have to delete it.)
Where is the make arrayWithPlist or arrayWithString method?
(Or how would I make my own?)
NSArray *anArray = [NSArray arrayWithPlist:myPlistS...
Hi all...
i want to read text in an image how to do that...
Thanks
...
Hey all,
I'm using custom headers for my tableview...
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
CustomHeaderController *header = [[CustomHeaderController alloc]
initWithNibName:@"TableHeader" bundle:nil];
header.title.text = @"Test";
return header.view;
}
The title label ...
I fear that I must link to the App Store of the users country. How could I do that automatically?
For example, the link I've got from Apple is this:
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=99999999999&mt=8
It opens up iTunes but fails loading the app. They say it takes up to 24h until it's there. So that...
I'm confused because this isn't done through xcode. I must find the project folder in finder and then really move files into those *.lproj folders. Is that correct? Or is there a way to see those *.lproj folders in Xcode like Groups and then just drag&drop the files in there?
...
not getting the data to the array variable
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *path=[documentsDirectory stringByAppendingPathComponent:@"Employees.plist"];
NSData *datas = [NSData dataWithContentsOfFile:path];
...
I have been reviewing the Apple Push Notification documentation and it talks about having a SSL Certificate for the provider to talk to the APN for a specific Application. Can you have multiple servers (providers) running the same SSL Cert to communicate to the APN for the same Application?
I can see this being useful for load balancin...
I'm playing around with a simple web app locally, and can't quite figure out why it is not caching correctly on the iPhone. I am serving a .manifest file with the correct MIME-type, and the site works perfectly fine with my local server turned on or off on desktop Safari, Chrome and Firefox. It is only mobile Safari that is failing to ...
Although not really a programming question I believe many developers would have come across this and therefore give the best answer.
Currently I am developing an App for iPhone for the organisation I work for. Its close to release and there is heaps of interest when I present it but the occasional question comes up am I going to port it...
How to I respond to a user pressing a UISegment? Is there a delegate, or must I programmatically (or Interface Builder), attach the selectors?
...
The app responds to a custom URL, and correctly launches when in a suspended state. The question is, can I disable showing the Default.png when launched this way?
A use case for clarity:
app is started normally
a home button press puts app in standby
a url of the scheme the app recognizes is tapped in mobile safari
users sees Default....
Anybody have trouble with an MPMoviePlayerViewController giving a white screen when it is presented?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
MPMoviePlayerViewController* mpViewController = [[MPMoviePlayerViewController alloc] init];
[[mpViewController moviePlayer] setContentUR...
Here's what I need to do:
I will have a toolbar with multiple objects on it (for this we'll call them A,B,C,D) and I want to be able to have the user click and drag them around and be able to snap them to a grid and connect to each other.
Sounds easy, right? Well here's my problem: some objects are different sizes, so A could be a 1x1...
How do I change the toolbar's background?
...