In my NSFetchedResultsController, I set a sortDescriptor that sorts based on the date property of my managed objects. The problem that I have encountered (along with several others according to Google) is that nil values are sorted at the earliest end rather than the latest end of the date spectrum. I want my list to be sorted earliest...
Developing an app that vibrates when a particular event occurs. I have a setting for turning the vibrate option ON or OFF.
I would like to be able to disable the display of the vibrate setting for devices like the iPod Touch that do not have vibrate capability. I know I can do this by determining the device model using:
UIDevice *thisD...
Hello,
I know I can change the selectionStyle of a UITableViewCell to make it highlight blue or grey when selected, but how can I change this when in editing mode. I dont want the cell to normally by selectable, only when in editing mode, like the Alarm part of the Clock application.
Thanks
...
I have a UINavigationalController of which I've set the titleView to a UISegmentedControl.
Later on, if I do something like.
[self.navigationItem.titleView setEnabled:NO forSegmentAtIndex:0];
I get a warning saying that UIView may not respond to this message. Of course it does and works fine but how do I properly get rid of the warni...
I'm looking to make an RPG with Cocos2D on the iPhone. I've done a fair bit of research, and I really like the model Cocos2D uses for scenes. I can instantiate a scene, set up my characters etc. and it all works really nicely... what I have problems with is structuring a game loop and separating the code from the scenes.
For example, wh...
It seems that if a modal view's parent returns false to shouldAutoRotate... the modal view will also not autorotate. How can I have a main view which will never rotate, and a modal view which will always rotate?
...
How would I model a system that needs to be able to provide content in a format that would be consumable by iphone, Android or web browser (or whatever). All a new consumer would have to do is build a UI with rules on how to handle the data. I'm thinking something RESTful returning JSON or something.
I'm really looking for suggestions ...
A horizontal compass looks something like this if you are facing due East (90 degrees).
85----90---95
If you were facing due 355 degrees northwest, it would look like this:
350----355---0
As you turn the compass, the number should cycle from 0 -> 360 -> 0
So, my question is, how would you implement a view like this on the iPhone? ...
I'm programming an app for the iPhone. I'm not very good with loops just yet. How do I shorten this code into a for loop?
if(CGRectContainsRect([space1 frame], [box frame])){
space1.image = [UIImage imageNamed:@"box.png"];
}
else if(CGRectContainsRect([space2 frame], [box frame])){
space2.image = [UIImage imageNamed:@"box.png...
Hi - first time asker, long-time lurker.
I am trying to create an iPhone view that has a date/time picker on the bottom half of the screen, and a grouped, single-section, four-row table view on the top half of the screen (almost identical to the one Apple shows in Fig. 2-4 of their View Controller Programming Guide (but then never goes ...
I am dealing with UIScrollView and I need to dynamically set contentOffset. But I found it didn't work well if you set contentOffset during the zooming(scrolling) operation. It seems the touches will affect setting contentOffset. Any idea about this?
...
I cant figure out where core animation on iPhone OS 3.1.2 is defined.
Anybody know?
...
After a page is loaded in Safari on the iPhone, when you begin scrolling down, the navigation bar is also scrolled out of view. When you scroll back up, the navigation scrolls back into view.
I'm looking to implement this same behavior using a UIWebView underneath the UINavigationBar, but I'm guessing it should be possible with any UISc...
I need to get the full height of a UITableView (i.e. the height at which there would be nothing more to scroll). Is there any way to do this?
I've tried [tableView sizeThatFits:CGSizeZero], but that only returns a 0x0 CGSize.
...
I have the following code to do a UIView animation:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationDelegate:self];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:mapView.view cache:NO];
[self addSubview:detailView];
[mapView removeFromSuperview];
[UIView c...
I am using the SplitViewController template. How do I set the title on the topbar in the detailview? Been trying to work this out for hours. Tried simple:
detailViewController.title = @"String";
but no luck.
Any help appreciated.
Thanks.
...
Im getting this linker error that won't let me compile. It only happens on the simulator.
KEY POINTS:
- Happens only in simulator
- Similar to THIS question, but found no FRAMEWORK_SEARCH_PATHS in my .pbxproj file
- Though my OS is 10.6.2, I had to build target 1.5 to avoid other linker errors
- libxml2.dylib IS required and is in my ...
In my iPhone Core Data app I have it configured in a master-detail view setup.
The master view is a UITableView that lists objects of the List entity. The List entity has a to-many relationship with the Task entity (called "tasks"), and the Task entity has an inverse to-one relationship with List called "list".
When a List object is se...
Hello,
This is my first time doing this sort of project so apologies if the question is silly.
I've got a question about using a C project with a project in the iPhone SDK. I've dragged and dropped the C project into the iPhone project in Xcode (so it appears in the screenshot below).
sjeng.h is a file inside GameEngine.xcodeproj, but...
How do you detect when you slide your finger across a UIImageView? Say for example you slide your finger across it and it changes color or something. I want to be able to slide across multiple UIImageViews and have something happen...
...