Hi,
is it possible to set a locale for the app with no regard to the users language? My motivation is that I don't want the automatically translated labels of some buttons.
Sincerely,
Heinrich
...
I have a simple query that I'd like cleared up by someone... Is it bad-practice to retain self?
I have a server request object that I'd like to make. I'd like to be able to use it in the following fashion:
ARequest *request = [ARequest request: someParam];
request.delegate = self;
[request begin];
In order for the object not to self ...
If I have an protocol (say UIPickerViewDataSource) and I implement its required methods, do I need to declare those methods in the header file of my class?
At the moment I'm not doing so and I get a warning of incomplete implementation (although everything works fine). If I do add the required methods in the then I don't get such warnin...
Instruments leaks says that this code leaks:
NSString *name = [file substringToIndex:i];
Layer *actualLayer = nil;
for (Layer *lay in layers) {
if ([lay.layerName isEqual:name]) {
actualLayer = lay;
}
}
name is the leaking object. There are some strange things: it only leaks sometimes, not always (this snippet of code ...
Hi
In my game I want to save a set of integers as statistics players can view. E.g number of deaths. This is an int I simply increase by one each time they get a game over.
How can I save this then have it at that number when I relaunch the game?
Thanks.
EDIT:
Ok after reading a few answers Im thinking writing to a plist is the way ...
hi all,
i have an array of 5 objects.
i want to assign object which is at index 1, to an NSSTRING.
nsstring *abc = [array objectAtindex:1];
i know this is wrong syntax, this is returning object , something like this.
how can i get value which is at index 1 and assign it to an string?
regards
...
I have an rss reader app which works perfectly on some feeds, but on others it just displays text and no images.
Is it the feed which should be adjusted to publish images or Im sure it is something with the way I read the stream.
Why does it work for some streams(shows entire posts, images, videos etc. from e.g. blogspot rss feeds) but...
I wish to match
&v=
and before
">
is there a regex match i could use
Example:
<a accesskey="1" href="/watch?gl=GB&client=mv-google&hl=en-GB&v=ubNF9QNEQLA">Test Your Awareness : Whodunnit?</a>
i only need the ubNF9QNEQLA
Thanks
...
I've been doing reading about VoiceOver on iPhone, but I can't find anyone talking about how to mark content as a certain language and use more than one language in an app. I want to make my dictionary VoiceOver compatible.
For example this can be written in a UITableViewCell (English then German) and VoiceOver will read this line wi...
I want to check for a valid network connection. I followed Apple's Reachability example and put my check in applicationDidFinishLaunching
#pragma mark -
#pragma mark Application lifecycle
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
if(getenv("NSZombieEn...
Anyone know how I can declare a static method for an xcode class and then use it in my project?
I want to create a Common.h class and then do something like this in one of .m file
Common.MyStaticMethod();
I dont want to have to instantiate and instance of Common
...
I have a method in my iPhone app that is very repetitive (called over and over and over sequentially). The method is quite bulky and takes about one second to complete.
My question is this: If I was to muti-thread it to run, say 5 method calls on different threads simultaneously, would that be any faster than running 5 calls one after ...
I've been using an older version of cocos2d for iPhone for an existing project - never change a running system. Now I'd like to upgrade to a more recent version and don't know how I should proceed about this.
Just install a newer version? Will the install script overwrite all of the old files and take care of the old templates too? Or d...
Hi there,
I've an app with a lot of masked image. For performance sake I ned to generate those masked image on disk and then incorporate them in the app (they'll be uploaded on demand nut not masked on the fly because it is already done).
I'm using this kind of coding
NSString *pngPath = [NSHomeDirectory() stringByAppendingPathCompon...
Hey
Just wondering what the best way to find out what page you're on in a paged scroll view.
At the moment I have this:
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
float page = scrollView.contentSize.width / scrollView.contentOffset.x;
}
is this the only way? Or am I missing some simple scrollView.page proper...
Hello -
How in the world does one get the iPhone view to zoom in on a focused UITextField? I need to tap on a text field that I want to edit, and my view should zoom in to the tapped text field and pull up the keyboard (which it already does), similar to how many Internet text fields gain focus on the iPhone. Is this some type of overla...
Hi all.
I'm going to look silly again, but it's better than getting crazy!
Here's my issue.
I have a UISearchBar which has a scopeBar that I want to hide.
I do this :
searchBar.showsScopeBar = NO;
and I also call the
[searchBar becomeFirstResponder];
method at the end of the function, but it doesn't work.
Any idea ?
Thanks
...
Hi
I have plist in my iphone app and I want to read and write an integer from my single to and form it.
I have this to read it:
scoreData *score = [scoreData sharedData];
filePath = @"stats.plist";
NSMutableDictionary* plistDict = [[NSMutableDictionary alloc] initWithContentsOfFile:filePath];
score.highScore = [plistDict object...
Hi, I got a problem when disable/enable the iphone idle function.
I try to use [[UIApplication sharedApplication] setIdleTimerDisabled:YES]; to disable the iphone idle function, and it works fine.
Then i try to use [[UIApplication sharedApplication] setIdleTimerDisabled:NO]; to enable the idle function in a button click event. But it t...
I have two audio queues that I want to synchronize to start playing at the same time. I would like to use
OSStatus playbackCallback(void *inRefCon,
AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
...