hi,
I have 2 buttons on my view and i want to disable the first button when i click on an other button and disable the second when I click again on the button.
I have tried with this code
if (button1.enable = NO) {
button2.enable = NO;
}
So I have in a NavigationBar a "+" button and 5 disable buttons in my view.
When I push the...
In the amazon iphone app home page there is a grouped table view that has two cells on one row. How can I recreate this?
...
I'm working on an app that needs to detect a rotation gesture from the iPhone. I have written code that polls CMMotionManager for rotation data, but for some reason these values are constantly changing even though the phone is stationary on the table. I'm not sure what I am doing wrong here. I have consulted the Apple docs and it seem...
Hello, I'm trying to port a ogre function written in opengl to opengl ES, but this function uses defines from glew.h, and I have no idea how to port this code.
The problem si that GL_S (for example) is not declared, because is int glew.h, and i have not glew.h for iPhone.
This is the code:
void GLRenderSystem::_setTextureCoordCalculat...
My app has a UISearchBar allowing user to enter search keywords. Each keystroke executes a Core Data query in order to display the results as text in search bar changes.
The problem is that search bar keystrokes are lagging pretty bad... surely because of slow fetching. Any ideas how to improve the performance?
My Core Data is backed w...
hi,
So I have in a NavigationBar a "+" button and 5 disable buttons in my view.
When I push the "+" button I want to enable the first button and when I push again that enable the second...
I have tried with that code
if (Button1.enabled == YES) {
Button2.enabled = YES;
}
I really don't understand how I can do that...
Thnaks f...
Hi there
I need an example or explanations of how to populate 2 table views which are on the same view. I need to understand the "cellForRowAtIndexPath" method, could someone provide me an example on how should the code be?
I mean how to identify which goes which table view?
Thanks
Below is my cellForRowAtIndexPath method:
// Custo...
Hi,
i release an image with [myimageview.image release];
but after the app was in background it comes foreground again it release that image again, so it crash! All my tries to check if the app came from a background did not worked.
So how could i check if an object is already released.. so i dont do it twice?
than...
I need to find out how I can manipulate sound files on the Iphone. I am mainly seeking ways to add echo sound effect by manipulating the Delay Time, Amplitude and Decay Time. Any assistance will be appreciated
...
Hi,
I have a simple project based off the "Navigation Based application" project type. The RootViewController has a list of rows with some names for contacts, and a button which should take them to that contact's details page with ABPersonViewController.
I have all the hooks working and I show the correct ABPersonViewController by push...
For some reason I cannot figure out I have an IBAction code wired up to fire on the touchupinside for a UIButton on a view using Interface Builder. Simple stuff right?? Well it works fine in my iphone version but for some reason I keep getting the following error when I click on the button in the iPad even though I have it wired up pro...
I am making an iPhone application where you can submit your score to Twitter to share it (as a status update) currently using this code:
NSString *twitterURL = [NSString stringWithFormat:@"http://twitter.com/?status=My%20score%%20is:%%20%i%%20and%%20CharsPerMin%%20is:%%20%@", currentScore, charPerMin.text];
[[UIApplication sharedAppli...
This is a bit curly, and I am not sure there is an answer.
I have a simple application that uses a handheld bluetooth scanner paired to an iPhone to keep lists of parcels coming of the back of trucks.
The scanner acts-as a keyboard sending character strings on scan. In the application the user must pair with the scanner in settings.
...
Hello,
I have a custom UIButton with a png inside it. I have quite a few of them in my app and everywhere they seem to be working fine.
In one location they are inside a UIView that is a headerView for a UITableview.
Whenever I press on them, only on iPhone 2G the image box goes black while the rest of the UIButton (it's got a title....
Hi all,
I'm just wondering why when I create a new view controller, I have to push the controller onto the stack before assigning values to its properties? Why, if I assign a value before the push, are the values not sent to the navigation controller as well?
this works:
SomeViewController *newViewController = [[NewViewController alloc...
Hi, I have a slider with values from 0 to 100. I can easily stop at any number in the simulator but on my device the slider becomes a little jumpy and might move one or two ticks when you release your finger. I would like to have my slider act like the multispeed scrubber in the iPod, but I can't find a "prepackaged version" for the UI...
I made a tab bar application, but it will not rotate into landscape.
I have the 'shouldAutoRotate' set to "return YES" but that doesn't work... Any suggestions?
...
I'm working on an iPhone app that has a UITabBar. Occasionally the tab bar ignores my "clicks" (or "taps", or whatever they're called in the iPhone world). It happens on both the simulator and the on the device. Clicking on a tab bar button won't result in any action, and I have to click it several times for the expected action to occur....
I am trying to loop through an NSSet that has about 6500 items in it. I am using:
for (id Location in sortedArray) {
loc = [sortedArray objectAtIndex:i];
cord = [cord stringByAppendingString:[NSString stringWithFormat:@"%f,%f ",[loc.longitude doubleValue],[loc.latitude doubleValue]]];
i++;
}
...
I've been looking at integrating the OpenFlow API developed by Alex Fajkowski: http://fajkowski.com/blog/2009/08/02/openflow-a-coverflow-api-replacement-for-the-iphone/ into an app I am working on.
Does anyone know how I can stack the images vertically so that I can scroll the images from top to bottom/bottom to top like a rolodex?
The...