I currently have a loop which iterates through an NSArray of NSString objects. I would like an NSString variable to be created on each iteration of the loop, using the currently evaluated NSString object's string value (from the NSArray) as the name of the variable. This is probably best explained through example:
for (i = 0; i < [array...
I searched first, so apologies if it's already been asked.
I have a couple iPhone apps that I want to run as native iPad apps rather than in "mini-mode" for lack of a better term.
What do I need to change to build my app for the iPad and is it easy to target both platforms from the same project?
...
I am using the UIWebView to load both streaming audio and video. I have properly set up the UIWebView delegate and I am receiving webViewDidStartLoading and webViewFinishedLoading events perfectly. The webview launches a full screen window (likely a MPMoviePlayerController)
Apple's MoviePlayer example gets the array of Windows to deter...
The following function is a method of a class called TitleOverlay - which is a transparent overlay with a textView.
The function shows the overlay by animating its alpha, and in parallel uses the animationWillStart property of the animation to show the keyboard.
On 3G phones, the first time this function is called, there is some lag be...
I'm working on a class that I will use for my own debugging purposes. I intend it to be an on device version of the debugger console. Mostly I care about capturing NSLog() statements.
No matter what I log to the console, I'm only getting 0xFF from fgetc(). What I expect to see from fgetc() is a character that was sent to stderr since ...
hello everyone
I have a project inwhich the root controller call multi viewcontrollers.
What is the even what's the event does the root viewcontroller get when a viewcontroller unload?
Do I need to construct even by myself?
Best Regards
interdev
...
static NSInteger shakeCount=0;
static NSDate *shakeStart;
static NSOrderedDecending;
NSDate *now=[[NSDate alloc]init];
NSDate *checkDate=[[NSDate alloc] initWithTimeInterval:1.5f sinceDate:shakeStart];
if([now compare:checkDate]==NSOrderedDecending || shakeStart ==nil)
{
shakeCount=0;
[shakeStart release];
shakeStart=[[NSDat...
Hello All,
I'm struggling with a memory leak of sqlite3. I have the following line in my code
score.division = [NSString stringWithUTF8String:(char *)sqlite3_column_text(selectStmt, 9)];
and it works fine. But when i look at memory leak instrument, i noticed a memory leak so after struggling a bit, i noticed if this statement is not t...
Hi everybody,
Can anyone tell me how to save an image from my application to the Wallpaper's folder in iphone using Xcode. The image will be downloaded from the server and displayed on UIImageView.
Can anyone help me with this...
Any code will be very helpful...
Thanx in advance...
...
Hi there.
I need an answer to a simple question. Do the launchDaemons keep running even if iPhone Screen is Locked?
...
A... as I learn Objective C.
There will be close to 20 button on a view at a time... :)
If I use a if/else loop for each button touched, it works great but I consider that to be inelegant and just plain cumbersome.
SO, I am using the button.tag to allow me to assign a number to each button then evaluate each button based on the .ta...
Hi all!
I have a UIWebView that loads a local HTML file from the resources folder.
Now, this HTML file has Javascript inside it.
My question is, is there a way to pass an XCode variable to the HTML file that gets loaded inside the UIWebView which I can pass to the Javascript function in the HTML.
Thanks a lot for any help or suggestio...
In my application, I am using Tab bar controller.How to change from Portrait mode to Landscape mode and vice versa? I can change mode with out Tab bar controller by just returning YES in shouldAutorotateToInterfaceOrientation method but when a view consist tab bar it is not working.Please, provide a solution. I am thankful to you?
...
Hello,
i m facing problem of copy paste functionlity in iphone. i m using viewcontroller XIB. in XIB i have list of textFields and one button and click on button validation are there for all fields are mandatory. so problem is when i writing something on textfield then copy - paste menu not appear in iphone.
But when we press the butto...
Hi,
here's my problem at hand:
I need to analyze audio data in realtime to find out the amplitude of the signal
I can't use the AudioQueue metering functionality because it has too much delay for detecting peaks
I have studied the aurioTouch example..... however...
I simply don't understand how the PCM coded buffer is converted back...
Hi All!
I am a beginner at Obj-C/Cocoa Touch/iPhone OS.
I wish to have a background for my app with different images everytime the the view is called.
Say I have 10 images. I 've used it like this:
//random image generation
NSString* imageName;
int aRandomNumber = arc4random() % 10;
imageName =[NSString stringWithFormat:@"g%d.jpg",aR...
Hi,
I'm trying to implement a view that shows a grid of information without using a UITableView, however, since I'm displaying about 36 different statistics, with its label I will have to initialize and use 72 UILabels. Does having so many UILabels mean that my iPhone app's performance will be significantly negatively affected? Is there...
I have added a section list for a simple Core Data iPhone app.
I followed this so question to create it - How to use the first character as a section name but my list also contain items starting with characters outside A-Z, specially Å,Ä and Ö used here in Sweden.
The problem now is that when the table view shows the section list the ...
Hi guys,
I have a custom layout tableviewcell for showing my normal tableview but when I search the tableview with the UIsearchbar the search results ignore the custom layout e.g. cellbackground.
Where can I layout custom cells for searchresults?
Thanks
...
NSString *url = [NSString stringWithString: @"mailto:?subject=Wallpapers%203d%20App&body=Have%20fun%20with%20this%20unique%20wallpaper%20app"];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];
I am using this code to open the mail app at iphone in order the user to send an email.
I want to add a url link or imag...