I have a stack of UITableViews managed by a UINavigationController. When I try calling indexPathForSelectedRow on any of the previous UITableViews, I always get nil:
NSEnumerator *e = [[navigationController viewControllers] objectEnumerator];
UITableViewController *controller;
while (controller = [e nextObject]) {
NSIndexPath *selec...
I have a UIImage that is UIImageOrientationUp (portrait) that I would like to rotate counter-clockwise by 90 degrees (to landscape). I don't want to use a CGAffineTransform. I want the pixels of the UIImage to actually shift position. I am using a block of code (shown below) originally intended to resize a UIImage to do this. I set a tar...
Is it worth it for me to compress a 1000 byte file to a 300 byte file? or will the filesystem space consumption be the same?
I'm looking at storing 10k less than 4k files on my iphone and I'm curious if I'll see space saving by compressing them.
Thank you,
Carl
...
I want to use a GPL component in an iPhone application which is not. It's an independent and standalone component, so on any other platform, I would compile it as a program and spawn it with some arguments when I need it.
But if I want to publish my app on the Appstore, I must comply with this section of the iPhone SDK:
3.3.2 An App...
Hi,
I submitted an application to the AppStore and having it back refused because I was accessing to an undocumented part of the API, which is wrong... I don't do that...
So, I'm using the UIImagePicker to take picture with a target in the middle of the screen,
I added the view with this method [myPicker.view addSubview:myTargetView];
...
I have an animation which I kick off like this:
[UIView beginAnimations:@"doThis" context:self];
[UIView setAnimationDuration:1.5f];
[UIView setAnimationDelay:2.5f];
Now, the problem is that this animation is told to start in 2.5 seconds. But in the meantime, something may happen and I don't want the animation anymore. However, CA wil...
Hi,
I wanted to create an unique string with length not more than 15 characters in objective C (or with the help of Iphone SDK 3.0).
I need this for mysql table. I know mysql auto increment will do for primary key but I really need to send the unique key from Iphone Itself.Every record in my table had to have an unique key.
The Unique...
I've created a new class and i want to declare a NSDictionary containing a table of values so that it's available in the rest of my application.
I did it this way as a property of the class (modified):
NSDictionary *ell = [NSDictionary dictionaryWithObjectsAndKeys:
[[JFEllipsoid alloc] initWithRadius:6377563.396 withInvF:299.324964...
I am using my iPhone application on my iPhone 3G OS 3.0.1 without any problems. The application connects to an API URL at https://api.serverdensity.com/1.0/ and all requests go through it.
A user of the app has reported that they are now suddenly getting an error "untrusted server certificate". No other users are experiencing this issue...
I have uitableview in uiviewcontroller class.... Its work fine...
But some times my tableviewcell is not visible, when i reload mytableview data...
When i touch unvisible cell , the cell is now visible.... I searched lot .. I could not find any fixes?
Can anyone help me?
Thanks in advance............
...
when a UIView is rotated, it's borders look incredible ugly. There's no antialiasing happening at all. Also if it's a UIImageView, no antialiasing happens when rotating the transform matrix. Is there a way to achieve smooth edges and smooth rotation of images?
...
any answer is kindly appericiable
...
I have two UITextFields in the App as IBOutlets and I have made a connection from File's Owner to these ... When I run Build and Go, the iphone simulator crashes ... and in the console (after debugging) ... its showing me following ...
2009-08-22 18:11:40.869 Control_Fun[1138:20b] *** Terminating app due to uncaught exception 'NSInterna...
I have developed code using EAAccessory , and its work fine...
But when i disconnect EAAccessory, my application got exception like an error....I want to show an alert , while disconnecting EAAccessory....
I am using this line of code in my app
(void)accessoryDidDisconnect:(EAAccessory *)accessory;
But this event is not fired ..Whe...
Hi Devs,
is it possible to make a system call like f.e. execute a "ls -la" and use the result in your app.
If it is possible would apple approve this usage?
Thanks
Tom
...
I'm using Page Control example from Apple. I've been able to play sound on the app itself using this code below but for some reasons, the sound went off early one page before it gets to the page where i set my sound to be played automatically.
- (void)viewDidLoad {
pageNumberLabel.text = [NSString stringWithFormat:@"Page %d", pageN...
Hi,
I have written an application with a draggable annotation which I have added on top of a MKMapView. I've added a CLLocationCoordinate2D variable called myloc in my main view controller to store the coordinate (lat,lng) values whenever I drag the annotation. My question is how do I update the myloc property value in the super parent ...
I'm struggling to figure out what exactly it is that decides which files go into the .app-package when compiling an application in Xcode. I've noticed that most image files go there automatically, while others like yaml-files or psd don't, and I cant find anywhere to set this. So, how do you do this?
...
[NSThread isMultiThreaded] always returns YES for my iPhone application, both in simulator and on the device, even if I run it first thing in applicationDidFinishLaunching:.
It this expected?
(I'm using Snow Leopard, if it makes a difference).
...
I am trying to figure out NSXMLParser for my iPhone app and while I generally understand how it works, I am still a little confused about how to extract the values I need.
The XML result that I am parsing is very basic. it is like so:
<start>
<status>300</status>
<record>
<title>The Title</title>
<content>Some content</content>
...