I've got an Info Button (Dark) which overlays a UIImageView photograph (which the user makes with camera).
The trouble is, if the photo is dark, then the button is almost invisible (because it's dark too). So, is there a way to get the color of the part of the image under the info button, so that I can change the info button to either d...
I am performing a deletion of several rows of a table. In fact, on this occasion all visible cells are in fact deleted.
This causes the cell immediately below the visible frame to become visible after the animation, since all cells above it are now gone.
Here is the issue, this cell is also deleted. So I get the following error, I assu...
My main view controller is a UITabBarController, with 4 UINavigationControllers as the tab bar items. Each navigation bar is a couple of different views that get pushed onto it's stack.
I have a single view that I want autorotated, but I can't get willAnimateFirstHalfOfRotationToInterfaceOrientation to be called within that view contro...
when opening working with an UIImagePickerController and setting allowsImageEditing = YES; there is a default cropping frame that is 320x320. In my case, I would like to setup that cropping frame to 320x240 for images that are landscape, and 240x320 for images that are portrait. However, I haven't been able to find a way to change that ...
After moving to a other mac (fresh installed OSX 10.5.7 with iphone sdk 2.2.1) i now have several problems.
Often copying files to my mac from the windows vista64 share failes with error -41.
When building an .xproject directly on the windows share it fails with hundreds of errors like the following:
"error : Cannot allocate memory"
I...
What is the best website to find freelance programmers? I would like to outsource an iphone application ( possibly the rest of the mobile platforms as well).
Has anyone used:
http://www.getafreelancer.com
http://www.elance.com
http://www.guru.com
Thanks
...
Hello.
I'm trying to load a file into a string. Here is the code I'm using:
NSError *error = nil;
NSString *fullPath = [[NSBundle mainBundle] pathForResource:filename ofType:@"html"];
NSString *text = [NSString stringWithContentsOfFile:fullPath encoding:NSUTF8StringEncoding error:&error];
When passed in @"about" as the filename, it w...
Is there a way to programmatically check the OpenGL ES texture memory usage on the iPhone?
I know you can use Instruments to monitor it, but I would like to do in in the app is possible.
...
This seems like it should be straight forward. Technically I can make this work, but if I want to perform certain UI animations, (using deleteRowsAtIndexPaths:withRowAnimation:) things get hairy. It seems as though the datasource and UI are fighting over who should delete first. Then I have to artificially keep data around for the UI up...
I'm pulling my hair out over this. I just downloaded the iphone 3.0 SDK, but now I can't get my provisioning profiles to work. Here is what I have tried:
Delete all provisioning profiles
Delete login keychain
Create new "login" keychain, make it
default
Create a new cert signing request
Create new developer and distribution
certs in th...
Normally i've been passing variable around in init methods, but I can't do that this time because I have a var in one ViewController class displayed using a tab bar and I need access to it from a different ViewController class when a different tab bar is pressed. My understanding was that you can access vars using @property but it's now ...
I am using CoreGraphics to draw a quadratic bezier but want to computer the min/max value of the curve. I am not from a mathematical background so this has become a bit troublesome. Does anyone have any articles or ideas about how to solve this?
...
Hi Everyone,
I'm creating a subclass of UIImageView that detects touches, and will move, rotate and scale the image based on the touches. However, I really feel like I'm reinventing the wheel here, and it's driving me nuts. Shouldn't this already exist somewhere?
Does anyone have any examples, or links to a class that is already doin...
Hi,
I have a game which is an iPhone adaptation of this game. Here my ship makes paths and then the enclosed path gets filled if there is no enemy present in that enclosed area.
I have taken the playField as a 2D array (int playField[300][300]).
When the color of the enclosed path needs to be changed to show that it is filled, the p...
-(void)myButtonclick {
NSString *data=[[NSString alloc]initWithString:@"YES U PRESSED BUTTON"];
UIButton *refreshbutton=[UIButton buttonWithType:UIButtonTypeCustom];
[refreshbutton setFrame:CGRectMake(15.0f, 330.0f, 150.0f, 32.0f)];
[refreshbutton setCenter:CGPointMake(80.0f,340)];
[refreshbutton setBackgroundImag...
I'm wanting to detect the orientation of the iPhone at 45 degree increments. Ideally I'd like to be able to get the angle of orientation along any axis.
The detection I need to do is similar to how Trism for the iPhone flashes an arrow towards the current bottom position of the screen when orientation changes.
I have something coded up...
I have a pickerView in a scollView, which would rotate if i sweep across it in sdk 2.2.1 according to http://discussions.apple.com/thread.jspa?messageID=8284448
but when i changed the target to sdk 3.0, it is only responding to tapping and rotate 1 row at a time. but for many values that way is tiresome.
can anyone help me here to rota...
I couldn't find it in the documentation, so I'd ask: is there a way to get/set the ringtone for a specific user in the address book (programatically, of course)?
...
How can I efficently interpolate per-pixel two textures A and B by a dynamic texture C and draw them on a simple quad? Multi-pass algorithms accepted.
I've had moderate success calculating the C texture per-frame on the CPU and uploading it with glTexImage2D into an alpha-only texture.
While this worked, performance was lacking and I h...
How can i use push notification in my iphone application.can u please help me by given some source or instruction to include my application.
...