I have a viewController containing the following method:
- (IBAction) playMovie {
NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"test" ofType:@"m4v"]];
MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url];
[[NSNotificationCenter defaultCenter] addObser...
Hi, i try to generate 6 random numbers and put them in a global NSArray, thats what i have done:
in MainViewController.h
NSArray * zufallsZahlen;
i have function to generate the Numbers:
- (NSArray *)generateNumbers {
NSMutableSet *s = [NSMutableSet set];
while([s count] < 6) {
NSNumber *z = [NSNumber numberWithUnsignedInteg...
Hey guys,
I want to store a couple of sockets in an ArrayList/NSMutableArray, but the sockets are of type int and NSMutableArray only accepts objects (id). Is there another data type that I can use as a container for sockets? I am not sure how many entries I will have, so I would like the data container to be like an ArrayList.
Thanks!...
this code allows you to unzip file and create a folder in documents lets say List and this List folder is having all the unzip data now how to access that List content??
NSArray *paths =
NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0...
How do i put a swipe gesture in the new iPhone SDK? I'm trying to detect a swipe gesture over a UIImageView? A swipe up and a swipe down?
...
How do I determine where the user touched in my view?
...
I have a UITableView, when a cell is taped i want to delete it automatically (no editing mode).
When it is tapped i can delete that object/data in the dataSource, but then how can i update the TableView, or refresh it so it so it shows the data in the dataSource after i change that data.
Thanks very much for any ideas:)
...
I have some basic questions about core data (which I am new to) and I would like some points of view on current standards and implementations.
Basically I have an app on the iPhone (supporting iOS 3.0 and above) which gets a lot of data from web calls over HTTP, Im looking at moving the results into local storage for fast retrieval for ...
i can access .txt file from documents folder but how to access a folder content lets say documents/A
inside A i have ->a.html, update.cfg
now why i cant access update.cfg??
i am getting null value for zipPath
i tried this but no luck
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
...
Hi all,
I am having List of images in my project i have to get the entire list Using NSBundle, How can i do this
Thank You
...
A few people have wrapped the SQLite library or provided alternatives. What are their relative merits?
...
how to resolve it?
#define SHKTwitterConsumerKey @""
#define SHKTwitterSecret @""
#define SHKTwitterCallbackUrl @"http://example.com/oauth"
#define SHKTwitterUseXAuth 0
#define SHKTwitterUsername
not have anyfield for API key
...
is it possible to have a back button in a modal viewController?
...
Hi,
I have created a Tab Bar Application, removed the default FirstView and SecondView and added the following two ViewControllers:
JustAnotherView (which is simply a UIViewController with a UIView inside)
MyListOfItems (which is a UIViewController with a TableView inside)
I have a 3rd ViewController called ListOfItemsDetailViewCont...
Hi,
I am going to be working with a graphic designer to develop an interactive children's iphone app. It will not be a game as such, but rather a series of backgrounds with some interactive objects that can be touched to display simple animation or sound.
These I would be striving for the quality that these guys produce http://duckduck...
I emailed my city bus service asking whether they would allow me to use their bus route data in an iPhone app with ads, and got no response. If I did create the app, and profited from the ads, would they be able to, or likely to, sue me or demand that I pull the app?
I know this isn't strictly programming-related but I don't know who to...
I am trying to fetch the file size attribute from a NSURL object by passing it getResourceValue:forKey method. Here is the code i am writing:
NSURL *samplePath = [[NSURL alloc] initWithString:@"file://localhost/Users/Abhinav/Test/abhi.pdf"];
[samplePath getResourceValue:&name forKey:NSURLFileSizeKey error:&error];
NSLog(@"Error===%@",er...
I have a mobile app, which is pretty data driven, though only through text and images.
In the current version each click or touch requires pulling new data from the server (appache/php). With network delay this easily takes 1-2 seconds for the first content to appear, which is far too long.
I have heard about and considered the followin...
I have a UISegmentedControl on one of my pages. I want an editbox to appear when a segment is clicked right below the clicked segment. I would like it to be animated (slide in or something)
Is this possible? What would be the best way to do this?
Damn.I forgot to mention all this action is going to occur within a cell and not a simple ...
So, there is a way to do that? :D
Thanks in advance.
...