I have used:
[UIApplication sharedApplication].idleTimerDisabled = YES;
in a number of Apps developed and running under iPhone OS 2.x and never had any problems with it. They were clock apps so needed to run constantly and ignore the iPhone's idle Timer setting.
However, trying to achieve the same with a new App running OS 3.0 (and w...
I have an iPhone app that works fine in 2.x version of the SDK. When I upgraded to 3.0, the didSelectRowAtIndexPath method is no longer called, so the action when a user highlights a row doesn't happen. This is a custom UITableViewCell that is in a separate nib from the UITableView. Both the data source and data delegate are properly ...
There are some section in the table that does not contain any data and would like to hide that section.
How to do this?
...
hello!
I have an animation block that worked fine when runnung the app on iphone OS 2.2. Now I compile the same code for iphone OS 3.0 and it doesn't work.
UIViewAnimationTransition trans = UIViewAnimationTransitionFlipFromLeft;
[UIView beginAnimations: nil context: NULL];
UIView *forview = [[self view] superview];
[UIView setAnimati...
I've created a NIB file with some button controls on it, and as a background it has an ImageView which contains a PNG file loaded from my project.
What I want to do is to draw on top of the ImageView - imagine that my UI is a clockface and I want to draw the hands of the clock on top of the background image.
Is it the correct approach ...
I have been getting this error messages from my PHP code used to send message to the APNS...has anyone got faced the same issue?
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation
failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:
SSL3_READ_BYTES:sslv3 alert handshake failure in
/Libra...
I have a device/debug build that works fine. When I build for release and distribute onto the device, I get this error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UILabel setWidth:]: unrecognized selector sent to instance 0x1605a0'
It is occurring in cellForRowAtIndexPath:
cell.videoNa...
Hello, I have a UIView where I use the touchesbegan event, but I realized that once I put my finger on it, the touchesBegan event takes like 1 or 2 seconds to fire. How can I make this happen faster?
thanks!!!
...
I'm trying to figure out if an iPhone can connect to another non-iPhone device over wireless or bluetooth and have seen conflicting information. Much of what I've found was before version 3.0 of the SDK came out, when it certainly wasn't possible. Looking at questions like this mention you can't connect to an arbitrary device unless if...
Hi Guys,
Sorry for the long post....
I'm trying to understand if the behavior I'm getting on my app is "normal".
I have an app developed against the 2.0 sdk version (i.e. to make sure max #of devices can run it, as I don't use any "special" 3.0 features I tend to think the lowest denominator must be the best choice).
So In Xcode (lates...
I'm starting to use GameKit for a p2p project, and I want to call a function at the same time on both clients. Assuming their clocks aren't set to exactly the same time, how can I call NSTimer or whatever so my function is called at the same time on both clients?
Thanks!
...
the following code yield a standard animation when user selects between tabs on sdk2.0 through 2.2,
on sdk3.0 devices it does not. I'm still compiling against 2.0 or 2.2 sdk but running on a device that runs 3.0 version of the OS.
descrepcincies
code:
- (void)tabBarController:(UITabBarController *)controller didSelectViewController:(...
Hi
Is there any way I can find out in my app if the user is running it on a device with OS 2.x or 3.0?
I tried adding a tag like the iPhone project templates do, but it doesn't seem to work.
#ifndef __IPHONE_3_0
//MY CODE FOR 3.0 GOES HERE
#else
//2.x CODE HERE
#endif
Thanks.
...
I get this build error when I build my iPhone project to run on my device:
Code Sign error: The identity 'iPhone Developer: x Xxxxx' doesn't match any identity in any profile
My development code signing certificate expired so I got a new one. On my first attempt I created a new CSR and got the message above. The second time I reused my ...
If I have something like this in my .h file:
@property (nonatomic,retain) IBOutlet UIButton *btnHelp;
Should I release it in the dealloc function of the .m file?
...
I have a UIViewController with an MKMapView in it. In viewDidLoad of this controller, I add the MKMapView:
[self.view addSubview:mapView];
I want to display this map in a tableview cell. In the tableview controller's cellForRowAtIndexPath:, I do this:
[cell addSubview:mapView.view];
where cell is a UITableViewCell. I've set the ...
With the new media-library capabilities in the 3.0 SDK, I'd like to have a tab in my application to control the music that's playing. Not just pause and play (i'm aware that pressing the home button twice brings up controls for this), but also the ability to browse and queue albums/artists/songs/playlists. Basically a copy of the ipod ap...
I'd like to include a zip file as an attachment to in app email (OS 3.0). I've added the file to my Xcode project and get this message during building:
Checking Dependencies
warning: skipping file '/Users/account1/Developer/Doc4_5.zip' (unexpected file type 'archive.zip' in Frameworks & Libraries build phase)
Is there something else I...
Instruments tells me there's a mem leak in this code, but I can't seem to find it....any help? sorry or the newbie question.
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
int altoBufferCelda = 26;
Mensaje *msg = (Mensaje *)[model.mensajes objectAtIndex:indexPath.row];
CGSiz...
I have a fairly involved managed data model which has a central object with many relationships which depend on the values of various attributes. I am importing the initial data into the model using sets of plists, each plist specifying attributes for an entity class and then filling in the relationships based on those attributes.
I wan...