Hey All
I am getting this error when two videos are playing at the same time (i think that is causing the error)
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempting to begin a modal transition from to while a transition is already in progress. Wait for viewDidAppear/viewDidDisappear to kn...
I am trying to implement a filmstrip-like UIScrollView that will be populated with thumbnails of catalog pages. Selecting a thumbnail image will cause the main UIScrollView to move to the selected page. The Catalog may contain 100 - 200 pages, and I want to load them lazily only when required.
I have done this in a UIScrollView with pag...
Given a UIColor, I need to determine if it is "light" or "dark". If I could access the hex value of the color, I could just check if it was greater than or less than a certain threshold hex number, but there appears to be no way to do that. Is there? Or is there another way I could check the brightness value of a UIColor?
...
Hello. I'm trying to convert an NSString object to an NSNumber with the same numerical value. When I create the NSString object using this statement...
NSString *songID = [localNotif.userInfo objectForKey:@"SongID"];
the var songID contains the string value @"10359537395704663785". and when I attempt to convert it to an NSNumber ob...
Hi, I have an app that has a login screen and splash screen. I want these screens to show up one after the other, and as such I have resulted to adding them as subviews to the app delegate's window property.
[window addSubview:mainViewController.view];
[window addSubview:loginViewController.view];
[window addSubview:splashScreenViewCont...
Hey all,
So I subclassed UIViewController and in the nib I have a UIView, and in it a tableview. It is my understanding that both UIViewController and UIView are subclasses of UIResponder, so they should receive the - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
method.
However, this is not the case, and my view contr...
HI,
I have a plist that comprises an array of dictionaries that each contain multiple dictionaries of strings. That is I have a:
MusicDataArray-->Mel ---->filename1
---->filename2
---->filename3
-->Bass ---->filename1
---->filename2
I need to read this ...
Hello. I have a tabbar-based iOS app with two tabs. When I tab into the second view, I want it to immediately present a modal view to the user. Here's my simple code for this...
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
MyViewController_iPhone *myVC = [[MyViewController_iPhone alloc] initWithNibName:@"...
I'm trying to draw a semi-transparent shape over an image.
I've got a UIView which has it's layer's contents set to the image, with a CAShapeLayer sub-layer who's path is set to the shape. There are a few of these UIViews inside a parent UIView, which is the zoom child of a UIScrollView.
Everything is fine on the iPhone, but when I zoo...
How do you setup the completion handler for:
captureStillImageAsynchronouslyFromConnection:completionHandler:
for AVCaptureStillImageOutput?
(void)captureDelegate:(CMSampleBufferRef)buffer error:(NSError *)error;
?
...
I am building an app that takes advantage of 4.0 features like in-app messaging but I also want my app to work on all 3.x versions. How do I check if the device can use MFMessageComposeViewController?
...
I have an image displayed using CGRect (code below). the problem is that it's obscuring UIButtons I have in the nib file.
CGRect myImageRect = CGRectMake(0.0f, 40.0f, 480.0f, 280.0f);
UIImageView *myImage = [[UIImageView alloc] initWithFrame:myImageRect];
[myImage setImage:[UIImage imageNamed:recipe.image]];
[self.view addSubview:myIma...
Hello. I have a view being displayed modally and, before I display it, I set it's background color to transparent...
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
MyViewController_iPhone *myVC = [[MyViewController_iPhone alloc] initWithNibName:@"MyView" bundle:nil];
[myVC.view setBackgroundColor:[UIColor co...
Hey,
I have been working on an iPhone app that requires me to dynamically change the content. I have the following code:
<div id="home">
<div class="toolbar">
<a class="blueButton" href="javascript: void(0);" onClick="$('#logout').show();">Logout</a>
<h1>AllaccessMD</h1>
</div>
<h1>...
Hello,
Is there any way for me to download the iOS 4.0.1 SDK without actually downloading Xcode AGAIN as well? I just think since I already have the most recent version it would be good to save time and space by simply downloading the SDK.
However - I do realize they might have updated Xcode so that it is compatible with new technologi...
Hi
I am building an iPhone app the retrieves a file from an IIS7 server. I'm using a plain old NSURLRequest to retrieve this file. The request works fine if I use another web server, but for some reason this one keeps giving me a 400 bad request. So I took a look at the request the NSURLRequest sends, and it looks like this:
::1 [Wed S...
Okay I am completely noob on C++ or Objective C++.
Here is my question.
There is .plist file that has a key say XYZ and the value can be on or off.
Now I have this method ...BOOL isEnabled().
I want to check the value for that in that plist and return BOOL based on on or off.
How do I do that?
NSDictionary *plistDict = [NSDictionar...
Do I need to make any code-level changes to play my videos over HTTP Live Streaming protocol? or is it more a server issue, where i need to re-encode the videos etc?
We've reviewed your application, but
cannot post this version to the App
Store because it is not using the HTTP
Live Streaming protocol, which is
required for br...
I wish to migrate from my version1 data model to version2, but once the migration is complete I wish to perform some custom migration code. How will I know if/when the migration occurs? Is there a migrationHasCompleed delegate method or notification?
For interests sake: The custom migration code I wish to perform resizes png's in the da...
is there a way to access an app's iphone user default settings from javascript?
...