Hi
In my application I am using MPMoviePayerController class's object to play audio(.mp3) files as well as videos(.m4v) files directly from the server. Few lines of code:--
MPMoviePlayerController *moviewPlayer = [[MPMoviePlayerController alloc initWithContentURL:[NSURL URLWithString@"myURLGoesHere"];
moviePlayer.view.frame = self.view....
I'm querying rows from my sqlite database using Fetch and loading the results into a NSMutableArray myDataArray. What I want to do is to store the values in myDataArray into my application's preferences plist file. But when I run the code below I get the following error:
[NSUserDefaults setObject:forKey:]: Attempt to insert non-property...
I want to overlay a HUD-style transparent graphic over the entire screen in a UITabBarController setup. The button to do this is in the first tab's screen (FirstViewController), and the overlay should also cover the tabs... is this possible?
...
hi,
can you help me setting up a delegate for a UIScrollView, so I can interact with it from within it's subviews?
Following problem:
I added some UIViewControllers (with extra nibs) to a UIScrollView. I want to control the ScrollView from within those subviews. E.g. I want to disable scrolling when I press a button.
In another threa...
Hi
I am making an iPad app, it currently has multiple UITableViews named like so:
monTable, tueTable, wedTable etc...
I would like to have a UITextView which is editable. Then any text when the user leaves the text view it saves the chunk of text and is linked to the cell selected in the table. So when that cell is reselected the text...
Hey,
I'm implementing a button class in cocos2d, and I want to be able to pass the selector when the button is created. Here is Button.m:
#import "CCButton.h"
@implementation CCButton
+(CCButton*) buttonFromImage:(NSString*)image selectedImage:(NSString*)selectedImage atPosition:(CGPoint)position selector:(SEL)selector_method
{
...
I got a four player pong game and when one player disconnects (because of any reason, incomming call, bored, catch a bus) the other players can continue playing. However I want that person to be able to reconnect after his call is finished, does anyone have an idea how I can pull that off?
When two players were evolved I would just rein...
Hello folks,
I'm writing some lines of code to get acquainted with the basics of Quartz 2d.
I am trying to draw and image an then clear it through the kCGBlendModeClear blend mode. Here's the code of my UIView subclass code, whose background color is set to orange through IB:
- (void)drawRect:(CGRect)rect {
UIImage *brush = [UIImag...
Hi all,
I have a TabBarController app where the first tabBarItem is a NavigationController...
I assign programmatically an image background to the navController with this code:self.navigationController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"OverviewBg.png"]];
The "OverviewBg.png" image is the exact si...
Hi all,
I need to remove all objects from a NSMutable Array. I can't seem to do this by enumerating as the code crashes.
Can anyone tell me the best way to do this with code example if possible ?
Many thanks,
Martin
...
I've been looking into creating a new application for iOS and after my last few apps I've been tempted to use CoreData (for benefits including saving and automatic undo/redo).
I've been a little confused when trying to implement the data-model I've been given fr the project though, since it seems that CoreData seems very much much close...
Hello,
I would like to have a layout similar as this one and also to be able to pinch to zoom.
Do you have a great idea ?
layout exemple
I investigating using an UIWebView or construct this with CoreText..
Thanks for your help.
Thierry
...
Here's an example of a URL (random selection):
http://itunes.apple.com/ca/app/imdb-movies-tv/id342792525?mt=8
Now here's the same link in French:
http://itunes.apple.com/fr/app/imdb-movies-tv/id342792525?mt=8
Note that I changed the country code in the URL from "ca" to "fr". Seems to work fine for this app. However, I'm unable to ge...
When using the Date/Time picker on the iPhone/iPad, the year (yyyy) is stripped from the Date formatting in order to make room for the time.
How does it accomplish this based on the default unicode formats stored by the region format?
The formats do not necessarily match any of the following:
NSDateFormatterLongStyle
NSDateFormatterSho...
In Apples documentation for Game Center it says to use this code to detect if Game Center is available:
+ (BOOL) isGameCenterAvailable {
Class gcClass = (NSClassFromString(@"GKLocalPlayer"));
NSString *reqSysVer = @"4.1";
NSString *currSysVer = [[UIDevice currentDevice] systemVersion];
BOOL osVersionSupported = ([currSysVer com...
Hello everyone i need to convert this code to a function with 2 parameters in this case the first parameter is News and the second one aif can u do this ??
-(IBAction)news
{
CFURLRef soundFileURLRef;
SystemSoundID soundFileObject;
CFBundleRef mainBundle;
mainBundle = CFBundleGetMainBundle ();
// Get the URL to the sound file t...
I want to add a UIImage in a tableview that shows a preview frame from a list of quicktime movies that are stored on a server. I have the URL to the actual movies on the server, but I'm not sure how to grab just one frame of each movie to include in the UITableview.
Thanks,
Rob
...
I coding app from iPad and I have to put two separate UITableView in the same screen. For this app I can´t put the UITableView and divid in two sections for requisits reason. It must be two separated. Well, in this case how I can fill the rows of UITableView. Can I have create a DataSource and Delegate in separate classes, one for a firs...
Hi I am trying to create a NSOperaion Queue to download a bunch of PDF files. But it doesnt work. The delegate methods dont get called for NSURLConnection since i put them in NSOperation queue.... any alternatives or solution???
- (void) loadData {
NSOperationQueue *queue = [NSOperationQueue new];
NSInvocationOperation *operation;
fo...
I'm developing an iPhone app that is a "module" of another launcher (it doesn't launch from the iPhone home screen). To add this module to the launcher, I have to drop in the xcode file into the parent xcode project (creating a subproject). The subproject uses a NIB file as its view controller and the subproject loads the file using init...