I'm having the hardest time getting this to work. I'm trying to copy a folder from my bundle to the documents directory.
the folder I'm trying to find is here:
...app/Resources/12/(a bunch of jpgs)
NSString *myPath = [[[NSBundle mainBundle] resourcePath]stringByAppendingPathComponent:@"12"];
NSLog(@"%@",myPath);/// returns "..../MyApp...
I have the following code inside my @interface FriendsNavController : UINavigationController class implementation. The code is executed. I just don't know why it's not showing the button...
- (void)viewDidLoad {
UIBarButtonItem *button = [[UIBarButtonItem alloc] initWithTitle:@"Add Event" style:UIBarButtonItemStylePlain target:self ...
I have am trying to include a JSON parsing library into my app and I downloaded a JSON library from github, so I dragged the JSON directory into my Classes Folder in XCode and I can open up JSON.h fine and see all of its contents. But when I import it into my implementation file with this code:
#import "JSON/JSON.h"
I get a compile er...
I'm looking for the best read performance for a bunch (~200) cached 80px by 80px images. A large chuck (~50) will all needed to be accessed at once.
Should I store the uiimages (as binary data) in a plist or using core data?
...
Hi Guys, I am creating an app that plays a video. This video is promotional material for a company. It details some of their products. What I want to do is create a button that can "jump" to a specific product. If you click the Product A button, you can jump to the section of the video about Product A.
I've got a basic (and I mean basic...
I'd like to create an NSTimer that repeats twice then stops and invalidates itself. I'd rather not use a loop if that's possible. Any thoughts on how I could do this?
...
So i have a web application I've developed using jquery and some jqtouch. I have javascript functions to clone list items to another "favorites" list if the user so chooses.
My question is how can I use localStorage to keep their favorites in the list when they come back into the web application?
I can't seem to find a straight forward...
I am wanting to save some app state data for when the user is quitting the app. I am thinking that I should be using the applicationWillTerminate method inside of my appDelegate, but when I try and do anything there, it's not doing anything:
- (void) applicationWillTerminate:(UIApplication *)application {
NSLog(@"test");
}
When I run...
I want to know how long does it take from posting a notification to getting the notification.
The reason is that I want to find out if the observer pattern is suitable for me. I don't want that another view controller can change the value before the notification has been sent and processed. I'm afraid that another process (thread?) is f...
i have a array with data,i want to load the dictiionary type element with array......
NSArray *thisArray = [[NSArray alloc] initWithContentsOfFile:path];
NSSdictionary *state;
how to load the content with array....
any help appreciated...
...
For example, I have a 200*200 image, and I would like to know the color code in position 50, 50. How can I do so ? Thank you. (I am using Objective C and iPhone SDK.)
...
Hii Friends,
the application is that using a imageviewer of a which had placed a Ad at Bottom where when clicked will move to php registration page,when user closes the reg.View it will go back to imageviewer, as i using Three20UI Library for the PhotoViewer,
the code as follows,
-(void) actionCall {
if(isValue) {
NSLog(@"remove...
I know I can do as:
UIBarButtonItem *backButton =[[UIBarButtonItem alloc] initWithTitle:caption style:UIBarButtonItemStyleBordered target:self action:@selector(onBack)];
backButton.title= caption;
self.navigationItem.leftBarButtonItem = backButton;
[backButton release];`
But I want the default button "
...
Hi,
How can I create a speech-bubble like context menu like in the Safari-Browser on the iPhone/iPad.
I would like to create a kind of context help.
Thanks in advance,
Stefan
...
Hey guys,
So I'm pretty new to Objective-C and kind of just learning as I go here. So I have a method that passes on its sender when called to another method. So when called internally I can call it like this:
[self insertNewDBInfoConnection:sender];
Here's where I hit a bump in the road. this insertNewDBInfoConnection: is only going...
Hi All
I'm slightly confused about my bundle ID and how I configure my new LITE version of my app.
I have created a LITE target as per these instructions: http://stackoverflow.com/questions/549462/how-do-i-manage-building-a-lite-vs-paid-version-of-an-iphone-app/549570#549570
All fine, however I need a new bundle ID to submit it to App...
Does anybody know of a way to stream audio from a file being played back in an app over the internet in a standardized streaming audio format? That is server up an Audio stream from the iPhone.
...
First my structure:
Application
|---> dirA
|---> dirB
|---> index.html
|---> somefile.js
|---> dirC
|---> index.html
|---> somefile.js
|---> dirD
|---> index.html
|---> somefile.js
some problems here. i need to load the index.html of this different dirs in my webview. but ...
Can anyone tell me how I can discover if the user has enabled/disabled that annoying click when they type, I'd like to use that as a default to indicate whether I should make a click when they click something.
Thanks, vic
...
Is there any real need to do this:
CGFloat x = 10.0f;
CGFloat y = 20.0f;
someView.center = CGPointMake(x, y);
Instead of this:
float x = 10.0;
float y = 20.0;
someView.center = CGPointMake(x, y);
...aside from style considerations?
Are there any performance implications at all?
...