I have an application that connects fine over http. When trying https I got the error that says that the root cert is not trusted. I found URLs for my site certificate, its CA certificate, and the CA's root certificate and have added them through Safari to the phone. Now when I go to Preferences -> General -> Profiles I can see all my...
What is the proper way to define a user input variable so it maintains its value after control is returned to the user. I have a TextView where the user enter a description, and I want to clear the contents of the TextView but maintain what the user first entered.
...
Let's say I have a method with this signature:
-(void)plotPoly:(Polygon *)poly WithColor:(UIColor *)color AndFill:(BOOL)filled;
How do I get that UIColor and BOOL in there as well as the Polygon?
Should I wrap them in a NSArray and pull them out inside the called method? That would mean I have to change the method sig, right?
Is th...
I thought it would be simpler to find if an object in on a dictionary, but it appears it is not.
I have a NSMutableDictionary with just one key named "products".
I have several products added to the dictionary dynamically, using something like
[myDict addObject:@"banana" forKey:@"products"];
[myDict addObject:@"orange" forKey:@"produc...
hi,
i am parsing two xml files with one xml parser class , i have a table view where the data is displaying after parsing .. here is a imageview and label , when i parse the first xml like if i parse myxml_1.xml and then display data in a table view its fine . but when i parse again the xml named myxml_2.xml and display the data in that...
I am trying to build an iPhone application using core data's built in table management. I want synchronize the data with an MSSQL or MySQL database. Core data is compatible with SQLite so I thought it might work as a bridge. Can anyone think of how one might achieve this functionality?
...
In my iPhone app, I have two plist files to store "Themes". One is a read-only file containing default themes, and one contains custom Themes that the user has created. I'm using plist files because it's very easy for me to read from the plist and create new Theme objects.
My plist is an array of dictionary objects.
Is there any easy w...
Just as a matter of curiosity, how does the nextResponder method implementation of the UIView class know who is the UIViewController that manages the view?
The UIResponder documentation states this, and I can see it work, but I don't quite understand it. To the best of my knowledge, a UIView does not maintain a reference to it's controll...
It's not the problem to look in all domains, but I can't find the right way to look for any service on the network.
...
Hi
I've subclassed UITableView (as KRTableView) and implemented the four touch-based methods (touchesBegan, touchesEnded, touchesMoved, and touchesCancelled) so that I can detect when a touch-based event is being handled on a UITableView. Essentially what I need to detect is when the UITableView is scrolling up or down.
However, subcl...
I'm trying to do some animations using Core Animation on the iphone. I'm using CABasicAnimation on CALayer. It's a straight forward animation from a random place at the top of the screen to the bottom of the screen at random speed, I have 30 elements that doing the same animation continuously until another action happens. But the perform...
I would like to confirm what the recommended ways are to convert audio and video files into NSData objects. Is + dataWithContentsOfFile: the best way to do this?
Thank you
...
Hi guys,
I've got a sample application on http://github.com/niklassaers/Test-iPhone-TabBar-App that shows my problem: I have a regular view-based application, and at some point (in this case when I click a button) I want to load a tabbar controller and display it. I believe this is what I should be doing:
MyTabBarController *tabs = [[M...
Hi
Sorry if i did wrong english typing
I want to show a text in UITextView depend on the date, some thing like "in This Day App", I have this code in action
-(void)changingText:(id)sender{
NSDateFormatter *df = [[NSDateFormatter alloc] init];
df.dateStyle = NSDateFormatterMediumStyle;
label.text = [NSString stringWithFormat:@"%...
I'd like to create a dial with similar behavior to some of the retro phone apps. These have a circular dialer that lets you spin it around with your finger. Any ideas how that is created or some links that discuss aspects of it?
...
Several methods I've used to write to files return a BOOL signifying their success, e.g.
NSDictionary:
- (BOOL) writeToFile:(NSString *)path atomically:(BOOL)flag
NSKeyedArchiver:
- (BOOL) archiveRootObject:(id)rootObject toFile:(NSString *)path
Somehow, this returned NO on one of my tester's devices. That's great (well, not real...
I have an iPhone app that uses a UISearchBar and UISearchDisplayController. The search bar has three scope buttons. I would like the keyboard to be a numeric keypad when a particular scope button is selected, but be a default keyboard when any other scope button is selected.
I have implemented the UISearchBarDelegate selectedScopeButt...
For some reason the top half of the my action sheet is not opaque. I have created the view and action sheet using the code below:
//allocate the view
self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
UIActionSheet *popupQuery = [[UIActionSheet alloc]
initWithTitle:nil
delegate:self
...
I'm trying to implement Application Tests as described here. So far, so good, but i fail to test, for instance, the location of the device using Core Location. I have added the appropriate Framework to the Target, and have initiated the update of location, but i have no clue of how to wait for the location to be loaded, the test suite ju...
Apple clearly states in their Introducing Store Kit video in the iPhone Dev Center that we should:
"Keep a copy of the TransactionID along with the Customer
Information in your server in the
cloud. This way if the customer
mistakenly deletes your application,
you have a mechanism for recovery. You
can check your server on ...