opengl ver: opengl es 1.x
platform: iphone
The blending equation:
(Rs Sr + Rd Dr, Gs Sg + Gd Dg, Bs Sb + Bd Db, As Sa + Ad Da)
How does it work?
I don't understand if I set both src and des to GL_ONE, and I have src color red (255,0,0) and des color black (0,0,0), the result will be (0,0,0)
Can someone explain how the equation work,...
I'm looking to store an entire book on an iPhone. I wanted to make the book searchable - it's a reference text. I'm also looking to break the book into chapters, or sections, etc. so that I can add a Table of Contents that the user can browse, and click to go straight to a particular chapter.
At first I thought about using SQLite to ...
I have what I think is a simple problem.
I have three views in my app, View1, View2, View3.
I know how to go from View1 to View2, and from View2 to View3, but how do I go from View3 back to View1?
I am using the following method in the View1ViewController.m to go from View1 to View2:
[self presentModalViewController:view2ViewController...
I have had push notifications setup for about a year now and they have been working fine.
Now for some reason they are not.
First let me say that I am connections to apples apns servers and sending the push notifications via a PHP script.
If I test sending a notification just to my device, it works every time.
If I test sending a notif...
I have an app that needs to send date (using POST) to a server. This function has to be on one of the NavigationController sub-controllers and user should be able to navigate away from this controller and/of close the app (only iPhone4/iOS4 will be supported).
Should I use threads/NSOperations or/and send data using existing asynchronous...
How does one go about adding image filters in an iPhone application? (similar to what Instagram and picplz have)
...
My tableView consists of 5-10 cells, each of which contains a scrollview of images. The problem is that when a cell goes off screen, it removes all the images and then reloads them when the cell comes back on screen. I know this is done for performance reasons, but in this case it just looks bad. Is there a way to prevent the unloading o...
Is there a way to tell the system to cancel all touch event sequences that are currently happening in your app?
In one part of my app, I show a new view when a user selects a particular table cell. But, I want to make sure they aren't simultaneously touching any other buttons. For example, if they are holding a toolbar button while th...
Hi
I am iphone developer, I already know iphone programming. I wrote couple of GPS based apps.
Now I want to start learning 3D graphcis and game development. I want to make very simple games. ALso I want to learn how to make a solid object in Iphone.
Any suggestions where to start from ? ANy books etc ?
...
Hi, I'm a first time Core Data user/learner for iPhone, I thought that [managedObjectContext save:$error] was used to save changes to the Persistant Store.
But when I reload and call NSFetch, the objects are still there. Any ideas why?
for (int i ; i < [mutableFetchResults count];i++)
{
NSManagedObject *toDelete = [mutableFetchResu...
hi i have a project built with the 4.1 sdk, I dont have that current sdk. So i am going to download it.
The thing is on the apple website, it says download xcode 3.2.4 with 4.1 sdk.
Can you built applications with xcode 3.2.4? and then can you send it to apple for submission? or will it not go through submission as xcode 3.2.4 is still...
I'm developing an iPhone game with Game Center integration. The game is being built as Debug (not release/distribution). On the simulator, Game Center always uses the sandbox properly. On the iPhone device itself, it will go for a few days using the sandbox, then suddenly decide to use the real Game Center servers (which results in an er...
There was an official way to do this, from the YouTube folks.
(link to YT official way - NB: now
broken, but YT hasn't (bothered to) correct this page:
http://apiblog.youtube.com/2009/02/youtube-apis-iphone-cool-mobile-apps.html)
In July 2010, they deliberately removed that - it no longer works (I've got an app that worked fine...
I have this in my table view controller, and i want to pass the cell's text value to my UITextField on the modal view.
- (void)buttonTapped:(id)sender {
AddName *addName = [[AddName alloc] init];
UITableViewCell *cell = (UITableViewCell*)[sender superview];
NSLog(@"text in buttontapped: %@", cell.textLabel.text);
addName...
I have a UIButton defined within a tableviewCellWithReuseIdentifier.
The button works but it's very touchy. If I just tap the button it works. Pressing it any long fails to trigger the action, even though it does flash showing that it knows it was pressed. Why is this happening? More importantly, how can I fix it.
Here is the code for ...
If I set an NSUserDefault in one file(playerdata.m) could I access that value from another file(calculator.m)?
...
I have been very confused on how to handle the releasing of an NSMutableArray when I need to return it from a method. I am not even sure if I am suppose to release it or not.
I have the code:
-(NSArray *)methodToCall {
NSMutableArray *mutArray = [[NSMutableArray alloc] initWithCapacity:10];
//Fill the array with stuff...
This is my first app :)
I have an app that already has a myapp-info.plist file (I think it was created when I started the project).
The preparation instructions for making an Ad-Hoc Build is telling me to create an entitlements.plist file. But it replaces my existing .plist file.
When I tried this last time I couldn't get it to insta...
Is there a better way in Objective-C to do:
if ([elementName isEqual:@"one"]){
// do some stuff
}
else if ([elementName isEqual:@"two"]]{
// do more stuff
}
else if ([elementName isEqual:@"three"]]{
// do more stuff
}
ideally, I would like something like:
//BAD CODE, NOT REAL!!!
switchString(elementName){
@"one":
...
I have an app that will display a bunch of images in a slideshow. Those images will be part of the bundle, thus distributed with the app.
All the images are photographs or photographic, etc.
I've read that it's preferred to use PNG as the image format, but seeing that the JPG version will be much smaller, I'd rather be using that.
A...