I my testing, when I exit (by pressing the home button) my app, it still is "running" in the background, thanks to the multitasking feature. However, I would like it to quit when the home button is pressed. Is this only happening to me?
Anyways, I have tracked it down to the applicationWillResignActive and the applicationDidBecomeActi...
how to use single controller with 2 view(iphone)
...
I have a UIScrollView with a custom content view that uses drawRect to display its contents.
In my drawRect method I respect the passed CGRect parameter and only draw what's needed.
However, each time the drawRect is called it is passed the entire bounds of the view, even if it is several thousand pixels, and I'm worried about performa...
Hi all, I am aware of the many questions regarding this topic, as I myself have asked one previously however, my issue now seems to be more related to the threading part. I have the following 2 methods.
-(void) restartTimer {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]init];
self.timer = [NSTimer scheduledTimerWithTimeInterval...
Hi,
I want some information about how the adwirl, mobclix works. How can we test our application by using dummy ads.
I wrote my application using cocos2d.
I did not publish my application in app store still. I registered my application in Mobclix.
I got an id for my application. I want to test how adds display in my application. Is...
I'm going in circles here. I have set shouldAutoRotateToInterfaceOrientation for all the view controllers. My app is running correctly in landscape, like this:
However, when I add a new subview using [window addSubview:whatever.view]; it shows up like this:
How can I make the new subview automatically be added in landscape orientatio...
Hi,
I would like to animate between two states of a view. Say, for example, I have a view with a label and when I change the text of the label an animation renders that change as a page flipping.
Now you can of course do this with a [UIView setAnimationTransition:forView:cache:]:
- (IBAction)nextPage {
[UIView beginAnimation:nil...
Hello guys!
I have a problem with my UILocalNotification.
I am scheduling the notification with my method.
- (void) sendNewNoteLocalReminder:(NSDate *)date alrt:(NSString *)title{
// some code ...
UILocalNotification *localNotif = [[UILocalNotification alloc] init];
if (localNotif == nil)
return;
localNotif.fireDate = i...
Hi all,
I need to clear the cached tiles stored by the device every time I load a new region does anyone know how to do this?
Many thanks
Jules
...
I have the following code:
self.itemsCopy = [self.items mutableCopy];
//[self.itemsCopy addObjectsFromArray:self.items];
NSLog(@"------- BEFORE APPEND --------");
NSLog(@"items count: %d",[items count]);
NSLog(@"itemsCopy count: %d",[itemsCopy count]);
My results are:
------- BEFORE APPEND --------
items count:...
How can I determine if the user has scrolled to the last cell/bottom of a UITableView?
...
The current issue I'm having is that Build and Archive will build my current target but after it's finished building, a pop-up will appear with the message:
"The operation couldn't be completed. No such file or directory"
I have reinstalled Xcode (3.2.3 with SDK 4.0), rebooted my machine, cleaned the cache, cleaned the project, man...
I have made a UIView which contains a table and some buttons. This view is called by a UIViewController which is called by a tab-bar controller. There is no IB involved.
When the view comes up it only has the outlines of the objects. e.g. the following button comes out without its label:
brect = CGRectMake(80, 330, 60, 27);
centern=CGP...
http://culturedcode.com/things/
do you guys know what UI element they used for their the top menu (home, car, phone...), the "A magical tag bar"? or is it a custom made UI? If so how do I make one that look like that?
...
I'm currently trying to implement a UITableView with a delegate and data source that replicates, as closely as possible, the functionality found the ABAddressBookUI framework's ABPeoplePickerNavigationController class, but with the added ability to select multiple contacts at once (as indicated by adding/removing an accessory view to the...
I have an image which I place in a CALayer, then add that layer as a sublayer of the main view. When I try to animate it around its Z axis, all I see is a static image.
Why won't my layer animate? The relevant code is as follows:
- (void)viewDidLoad {
UIImage *myImage = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] p...
The documentation is rather poorly written when talking about playing audio in the background. It gives the impression that all you have to do to continue playing the audio that you are currently playing is to just add a key/value pair to the info.plist file and wallah, it's magic.
However, this is not the case. For instance, if I pla...
I know there are a lot of answers about that problem, but I need someone explain me easy, why on SDK 3.1.3 the code bellow returns the correct result, and in the same code in IOS4 return nil.
Thanks a lot for any suggestion.
Marcello
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
[dateFormatter setDateFormat:@"yyyy-...
I have a custom UIButton in my viewcontroller that should have either the image of either a red or blue heart depending on the value of a variable when the viewcontroller is loaded. If the user clicks on the button, it changes the Red/Blue value in the domain model and should also toggle the button image. The button color will load corre...
I have created a UIScrollView (canvas.scrollview) and have a custom UIView (canvas) inside it.
A normal configuration for starting up is something like this:
CGRect cs2 = CGRectMake(0, 0, 4000, 4000);
CGPoint screen = {[UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height};
self.canvas.frame = cs2; //canv...