Has anyone got a video playing on an AVPlayerLayer with an alpha channel?
If so, how is it possible? I've tried many different solutions including using pure alpha channel video, applying blend modes to the target layer and animating every frame myself. The only workable solution is the latter and it bogs the phone down too much.
...
I'm a .NET programmer new to objective-c, and I'm struggling to understand some nuts and bolts syntax. For example, how should I parse this method signature:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
I understand what the "-" char means, and (UITableViewCell *) define...
The latest Xcode IDE requires you to target iPhone SDK 4 while dynamically handling deprecated and new functionality if you set the application to deploy to earlier releases.
So can I use new features like Blocks and still have it work on a device running iPhone OS 3.0 or 3.1 or 3.1.3?
I have not found documentation on how to do backwa...
Is there such thing? I need to make an application in Xcode to basically do what the terminal app does. With just an nstextfield as the input, a label for the terminal output, and a send button. All this needs to be done without terminal accually being open.
Is this possible? If so, can someone post a website or sample code?
...
I'm trying to create a squishy ball with Cocos2d and Chipmunk (via SpaceManager) using a bunch of rects all chained together then joined with springs to a central body.
Something like these examples
But in order to do this, i think I need to store all the cpShapes in an array after I've created them so I can then loop through the arra...
Is it possible to have an objective-c application send and receive ichat messages without ichat? NOT with applescript. I also want to do this to skype, mail, ect.
Is any of this possible? I need this to be in objective-c, not applescript, so it all needs to be within objective-c. If so, can someone post examples, websites, additional in...
I am currently displaying text in a uiwebview. However, I would like to allow a user to select text and perform some action with the selected text (google it). Apple has done this sort of thing with iBooks. When you click on a word you can choose to look up the word in a dictionary. How can I do the same thing with Webview?
UIMenuContro...
Hello,
I just started playing with Core Data.
I created an entity called Task with a property called Description. I opened Interface Builder and I added Core Data Entity view.
Picked my entity, property and tried to build the application. After clicking on "Add" button it crashed with EXC_BAD_ACCESS.
After I've renamed this attribute...
Is it possible to get your location data via google latitude within your objective-c application? If so, can someone post code, examples, ect?
Thanks,
Elijah
...
How do #defines work in objective-c?
I have a background in C/C++ and am now trying to pick up objecive-c. #defines don't seem to work in objective-c the same way they work in c and c++, where the compiler just replaces all references to the defines with what they are supposed to represent.
When I try to use #defines in objective-c they...
I have an app with some buttons and multiple pages: each page is a XIB with a PNG and some buttons. The button actions to call up the other pages are coded into the UISubview Controllers for each of those XIBs.
Now I need to add buttons to those XIBs that will pop up overlaying imageviews. How do I execute this?
I think I need to program...
Hello everyone,
I am using iAd code implementation from the iAd class reference:
I have implemented the iAd delegate, however I get some errors when I directly copy and paste the code from the website. I have created new projects and tried entering in the methods from the website directly, but I still get the same errors. You guys can...
Hello guys!
Can I request the user of my iPhone app to submit a review about the application?
...
In an iphone app, I have 2 large numbers stored in NSStrings, and I want to figure out the float number that is achieved by dividing them.
Right now, I have:
unsigned long long number = [string1 longLongValue];
unsigned long long number2 = [string2 longLongValue];
float percent = number/number2;
[textField setText:[NSString stringWit...
I am saving a date that has been converted to a string to a plist when the app exits. When the viewDidLoad is run I am trying to read the string back in and convert it back to a date. The string saves to the plist and reads in correctly but will not convert back to a date. I am using the standard format given by the NSDate date command. ...
Hi,
I'm using a piece of code I have used several times before to load an image into a UIImageView
- (void)viewDidLoad {
[super viewDidLoad];
UIImage *img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle]pathForResource:@"1" ofType:@"png"]];
[self.imgWeather setImage:img];
}
For some reason I get a SIGABRT when I...
I have a few XIBs that are my pages, and i'm using presentmodalviewcontroller to switch between them with some buttons. Now I want to use other buttons to pull up overlays on those views. How I have it now is I have a button which simply toggles the "Hidden" property on the UIImageview.
What are options for animating the show/hide fun...
Hi all,
I am trying to figure out if there is a way to implement an autocomplete functionality in a UITextField for specific values.
I know that the UITextField can do this using the iPhone dictionary (much like searching google in safari, etc), but I want to be able to programmatically have it correct to certain values that I specif...
If my connection hangs, is there a way to set a timeout for TTURLRequest?
...
Hello,
I try to use this library http://github.com/eczarny/xmlrpc to retrieve information from an xml-rpc server.
The connection is ok and I can see the parsed object display in the console but I don't know how to read the response object even if I tried a lot.
Here is the console result of NSLog(@"%@", [response object]); (response i...