So when I see ccTouchesBegan (or touchesBegan for that fact of the matter) I see something like this usually:
- (void)ccTouchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
{
UITouch* touch = [touches anyObject];
}
But, what I am not getting is how do you just detect if one object has been touched? For example how would I check i...
I am working on a project in xCode for iPhone where I am receiving an EXC_BAD_ACCESS error, HOWEVER, I only receive the error when stepping through a function I am trying to debug. When I take my breakpoint off the function, but still run the project in Debug Mode, I never receive this error. Is there anyway to solve this or find out w...
I am adding a modal view using the following code:
[self presentModalViewController:phrasesEditor animated:YES];
How can I make the modal view semi-transparent so that the superview "shines" through?
My complete method/function looks like this:
-(IBAction)showEditPhrases:(id)sender{
PhrasesViewController *phrasesEditor = [[Phrase...
I display an image in a UIImageView (within a UIScrollView) which is also stored in CoreData.
In the interface, I want the user to be able to rotate the picture by 90 degrees. I also want it to be saved in CoreData.
What should I rotate in the display? the scrollview, the uiimageview or the image itself? (If possible I would like the r...
I have 2 threads in my application, a game update thread and render/IO/main thread.
My update thread updates the game state, and the render thread renders the scene based on the updated values of the game state models and a few other variables stored inside an object (gameEngine).
The render thread gets executed while the game thread is...
Basically -[UIApplication openURL:] would be perfect, if it wasn't for the fact that it doesn't work within the same application (at least on simulator -- if this works on device someone please tell me). It's not a super big deal though if it just relaunches w/o URLness since I can obviously just persist some data. The goal of this is ...
I have seen many developers that add various convenience macros to the Prefix.pch of their iPhone project.
What do (or don't) you recommend adding to the iPhone Prefix.pch file? What does your Prefix.pch look like?
...
Hey,
I’m parsing a twitter rss feed, and I just need to show tweets, so I don't need MGTwitterEngine.
I have already set it up so I can see the complete tweet, the only thing I want it to colorize hashtags and urls.
So I would need to slice up the string in different substrings, colorize the hashtags and urls and glue it together in va...
Once I get an ABRecordRef from the ABPeopleNavigationController, how can I get the contact's street address(s) (if there is one)?
...
Hey, my first question! I've been able to code up most of this RSS reader without enlisting help (through a lot of searches through stackoverflow!) but I'm stumped here.
NSString *urlbase = [[NSString alloc] initWithFormat:[links3 objectAtIndex:indexPath.row]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlbase]];...
Is there a more detailed error to be found other than the console's EXC_BAD_ACCESS? Where/how can I see it?
When my app crashes, I see tHE ERROR in thE XCode status bar, but thE console shoWS nothing else. WheRE do I see more info about what causes the crash?
...
Is there a way to be notified when a ViewController is removed from a UINavigationController because the back button was pressed?
...
I have a string with this value:
2010-05-13 23:17:29
I'd like to format it and am using the following code:
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
formatter.dateStyle = NSDateFormatterMediumStyle;
NSDate *formattedDate = [formatter dateFromString:dateString];
[formatter release];
When the debugger reaches the ...
I've written many iPhone Applications that have pulled data from web services and I've worked on synchronizing data between an iPhone App and a Web Application, but I've always felt that there is probably a better way to handle the synchronization.
I'd like to know what strategies you have used to synchronize data between your iPhone(re...
I'm experiencing a weird bug that I can replicate pretty consistently with the FBConnect iPhone SDK, more specifically with the class FBPermissionDialog. The result is that instead of seeing the standard extended permissions dialog, the user is shown this: http://cl.ly/15Lx. The only way around it is for the user to delete the app and re...
Hi,
I have an XML will is parsed and then fed to a bunch of Labels.
I am trying to add a live element so that the labels refresh automatically from the XML.
From what I've read this is possible using a tableView and [tableView reloadData] but the design dictates the use of labels. At the moment the labels only get updated on restarti...
I have an optimization problem for the headers of a table with plain style. If I use the standard view for the table (the classic gray with titles set by titleForHeaderInSection:) everything is ok and the scrolling is smooth and immediate.
When, instead, use this code to set my personal view:
- (UIView *)tableView:(UITableView *)tableV...
I have an iPhone/iPad app using Core Data to keep my application data. Sometimes, even though I don't get any error messages, the data is not really saved so when the app starts anew, it's all gone. This problem seems to disappear after physically rebooting the device, but otherwise it's pretty random and hard to track. Has anyone seen a...
hello
I've placed this code my applicationDidFinishLaunching method, to get a black Navigationbar.
rootTabBarController.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;
rootTabBarController.moreNavigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;
its working fine, but when the user rearranges the ...
I want a view to fade in when being added to the stack via
[self.view addSubview:someSecondaryViewController.view];
How do I animate this call so that the view fades in (and out)?
...