Is there a way to connect code to a view's 'back' button that is part of a navigation controller? That back button is automatically coded in by the nature of it being a navigation controller so I am not sure how I can connect code to it.
(I know this should be really easy but I can't seem to find it in the documentation on navigation c...
It has been suggested to me to have unified color scheme for my iPhone app. They said the colors in my app are incoherent and clash.
What tools are there to help with this and where can I find examples?
...
I'm guessing no, but would love to be wrong. I would like to use a bundle display name for my universal app that shows great on the iPad and iPhone 4, but is too long (has ellipses) on older iPhone models. I'd like to specify the full bundle display name on the former two platforms, and then specify a shorter name on older iPhone models....
I am writing an iPhone app and I want to create a NSCache singleton.
I am having trouble, here's the code that I have:
MyAppCache.h:
#import <Foundation/Foundation.h>
@interface MyAppCache : NSCache {}
+ (MyAppCache *) sharedCache;
@end
MyAppCache.m:
#import "SpotmoCache.h"
static MyAppCache *sharedMyAppCache = nil;
@implement...
Hi, I've seen people using tags in iphone programming, like inside labels or tableview cells:
name.tag = kNameTag
Can someone explain with an example how these tags might be used? I gather that it's so that you can refer to a ui element later? Like if you programmatically use a for loop to create an array of UIButtons onto the iphone...
Hello,
I'm developing an app using a fork of LeavesViewController that changes to a two-page orientation when the device turns to landscape.
When using the Leaves controller alone, everything works fine.
When using the Leaves controller inside the view of my main UIViewController, it never gets any of the device rotation messages (how...
Hello,
I'm trying to customize a table view to display a feed of youtube videos based on a search query. I found this code http://pastebin.com/vmV2c0HT which displays a feed of a YouTube channel in a tableview, it works fine. However, when modifying the viewDidLoad function to search for a query instead of a user feed, I always end up w...
hi guys, here is question:
i have 2 threads: the main one and the other.
on the main thread i perform anything gui related
on the other thread i perform all my calculations
on some operation i have to stop the second thread for some seconds, waiting the first thread to do something....
my question:
which is the best option and wh...
Hey there, I'm having difficulties with adopting the UIKeyInput Protocol with Core Text. I currently have most of it done as posted in the source code, however for some reason it glitches as it types, with incorrect font height for the first letter of each new line, which doesn't really make much sense since it's just drawing whatever is...
How can I manually show No Results on a UISearchDisplayController?
...
If the html document is disabled. (no scrolling...)
document.ontouchmove = function(event){ event.preventDefault(); }
Can I selectively enabled elements in the html document? such as a div, span
What javascript should I use to do that?
...
I am new to iPhone development. I am running OSX 10.5.8 and xCode 3.14.
I signed up as an Apple developer, downloaded the iPhone SDK and xCode and installed
everything properly (based on what I have read online). When I go up to
File->New Project to create my first iPhone project, there is no option for the iPhone
templates. I am only...
The Scroll Indicator Style only has 3 settings, Default, White and Black. I want it to be Orange, how do I change the colour?
...
Members of my favorite forum, I am stuck with a simple problem (chalk it up to the fact that I am fairly new)...
I am using an action sheet. I don't know how many buttons to display, so I decided to set the action sheet delegate to display FOUR buttons in total using string variables, knowing that if I only need to display 2, I can set...
What code allows me to produce a standard beep sound on the iPhone?
...
Ok I want to keep track of how many times my iPhone App has been launched. I will be using this number for a "leader board" for our most active user. I figured the code needs to be in the -DidBecomeActive method being that in iOS4 the app may remain in the background for sometime.
Now I know it's probably trivial and i'm just making it ...
I'm trying to create a loading view that is displayed when code is being called. Right now when I call to add a subview it isn't added until the rest of the method has been run through. For example,
- (void)loadFight:(NSString*)levelName
{
[self createLoadingView];
sumoController = [[sumoViewController alloc] initWithNibName:@"s...
So i know that "offine mode" is supposed to work when you have no internet connection. But suppose I build a local network webapp, let's say at 192.168.1.100, then I leave my house, and i'm off the network, then I try to hit that address. Will the webapp pull from the cache, or will it say, "you have internet, but the host is unreachable...
Hi everyone,
I am new with Core-plot. I would like to add label about the number on each of bar column on CPBarPlot. I knew that I must implement this method of CPBarPlotDataSource delegate:
-(CPTextLayer *)barLabelForBarPlot:(CPBarPlot *)barPlot recordIndex:
(NSUInteger)index;
But even I implemented that method, nothing happe...
Hi, im finding leaks with the leaks instruments tool but have no idea why this method is returning me leaks. any help? code is below
if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) {
// Setup the SQL Statement and compile it for faster access
NSString *str = [NSString stringWithFormat:@"SELECT UsageData.Da...