i'm using v99.0
onEnter is not being called when my sprite is added to the layer and the layer's scenee is displayed. the sprite appears correctly but onenter is not being called.
the funny thing is that i'm doing exactly the same with other sprites and their onenter methods are being called fine.
Is this a bug?
In app delegate:
[[...
I am switching between two views by toggling hidden attributes. How would I know when one view gets hidden and/or visible?
Tried setting break points into viewDidLoad, viewDidUnload, viewWillAppear, viewWillDisappear, viewDidDisappear, becomeFirstResponder and resignFirstResponder. Nothing. None of those are called, when I set hidden = ...
Hi,
I have a class A, and B like these:
@interface A : UIViewController <UITableViewDelegate, UITableViewDataSource>{
UITableView tv;
}
@end
@interface B : A {
}
@end
My question is: "In the interface builder, how can I link the table view tv to the nib of class B?"
Thanks.
...
I just resolved a cyclic dependency problem by using class forwarding. Now, I am getting a warning of no 'showSumDetails' method found. I don't understand why it should happen at all, any help will be appreciated. Including a bit of code here:
MyAnnotation.h
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
//#import "MyMapVi...
Hi all,
How can I change the style of a edit button from a table view? I tried it with the following code but it doesn't work.
self.navigationItem.rightBarButtonItem = self.editButtonItem;
self.navigationItem.rightBarButtonItem.style = UIBarButtonItemStylePlain;
Thanks in advance.
Sean
...
If I have a web application that also services requests for iphone/android applications, what is the best way to go about designing the application?
i am using spring mvc.
Would it be possible (or advisable) to use the same controller action to service both web and mobile requests, or would I have to duplicate things with another set o...
I have a UILable that has a formatted String (formatted for currency), so there is a dollar sign, $21.34.
In the core data entity the attribute is of a type double, I am using an NSDecimalNumber to save to the database.
self.purchase.name = self.nameTextField.text;
NSString *string = self.amountLabel.text
NSDecimalNumber *...
I have a CALayer transformed in 3D on a offscreen UIView (much larger than 320x480).
How do I dump what is seen on this UIView to a UIImage?
NOTE: I Have edited the question to include this code...
This is how I create the layer...
CGRect area = CGRectMake (0,0,400,600];
vista3D = [[UIView alloc] initWithFrame:area ];
[self.view add...
I just deployed my app to my iPhone for the first time. Every time it launches it vibrates before running, and it runs fine. The build is a Debug | iPhone one of my app.
Any ideas why it vibrates when it launches and how to stop that? It's definitely not something I coded up and I don't have any exceptions or issues when running in the ...
I have the following code snippets:
@interface Foo: UIViewController {
...
UIButton *myButton;
...
}
@implementation Foo
(void) viewDidLoad {
...
myButton.highlighted = YES;
...
}
When I run the app, the button is highlighted in blue (default behavior). It works as I expected.
But after pressing the button once, the button i...
I have 4 UIviews (not overlapping), one active, and 3 not enabled. I want to set one of the 3 non-enabled views to active by a touch, I thought touchesBegan: but it doesn't work. any ideas? will this work with uiwebviews as well?
...
I am new to iphone development.I am creating a map application.I am getting the current location and able to print the co-ordinates with %g format.What is that format.Can i save the coordinates in a integer local variable to load the current location in map. please help me out.Is there any other alternate to load the current location in ...
The code below is from another SO post, and my question is can the transition from one view to the next using this method be animated, and if so how?
// origView is an instance variable/IBOutlet to your original view.
- (IBAction)switchToPhoneView:(id)sender {
if (origView == nil)
origView = self.view;
self.view = phoneViewContr...
I have two UIPickerViews set up on one view under the same view controller. The picker's seem to be populated with values as expected. I also have a label for each picker. The label updates with each value change, but the value displayed on the label is not correct. It's always off by 10. The codes are below.
Interface:
#import <UIKit/...
I like reading faqs from GameFaqs.com and I'd like to read them on my iPhone. The problem is most game faqs are really, really long, which makes scrolling through them a big pain. Flicking through screen after screen of text takes a very long time.
I am not a web developer, but would there be a way to somehow create an overlay through w...
My iPhone application has a fair amount of data that it needs to run, which I would like to store in the bundle as archives, and unpickle the data when the application starts up. Can I create these archives (which include instances of custom classes) on a Mac OS X system, and read them from the iPhone app?
...
Hello all im trying to find a simple notepad tutorial or advanced. like the one used in the iphone app bundle any help is appreciated.
...
I have a UITableViewCell with the UITableViewStyleGrouped style and I would like to change the background color of the cell.
- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)ip {
// Do cell creation stuff ...
cell.backgroundColor =
[UIColor colorWithRed:255.0/255.0 green:243.0/255.0 b...
Is it possible to format only a part of the text of a string?
User searches, and if the search entry is found in the array, it will highlight that particular part of the text only.
TIA.
...
Hello Stack Overflow, love this site and all helpful people! I'm newbie to Xcode and iPhone programming but I've pretty much got the hang of using the SDK to make programs in Obj-C (simple programs right now but make me happy). My experience is web programming (such as PHP and Perl) and I'm not really used to a lot of the new Xcode/deskt...