Hi! My app involves music(iPodMusic), and there is a UISwitch toggling play/pause. My goal is to be able to detect if music is playing, so that therefore the play/pause switch can say 'play' when music is playing and 'pause' if it isn't.
...
How do I disable the backbutton in a navigationcontroller?
When I hide the button like so,
self.navigationItem.hidesBackButton = TRUE;
the buttonarea is still tappable.
...
Our application currently looks like this:
[ Navigation Controller]
[ Content ]
[ Tab Bar Controller ]
What we want to do now is to add advertising to the free version, which we would like to put on top of the Navigation Controller, like this:
[ Advertisment ]
[ Navigation Controller]
[ Content ]
[...
I've got a nice and short method to load textures in my iPhone app, where I glGenTextures(13, &textures[0]);. Of course at the end of it I do glDeleteTextures(13, textures);, but the memory isn't fully released untill I comment out this line:
CGContextDrawImage(textureContext, CGRectMake(0.0, 0.0, (float)texWidth, (float)texHeight), tex...
Hi all,
I am currently trying to connect an iPhone to a predetermined custom server. I have managed to make this connection using a simple easy to follow example I found in some forum. This code is as follows:
- (void)sendcmd:(NSString*)cmd {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *hostname=...
I'm using the Three20 library to display a photo gallery in my iphone app but the images are getting cut off when I click on them. Where do I specify in my Three20 lib (or preferably in my call to Three20) what the image dimensions should be?
...
What does the iPhone use the thumbnails folder's .BTH(Bathy Recorder data) file for? How can you create it in XCode? What app can be used on a mac to read the contents?
...
Hello,
I am passing a link on the iPhone with google map instructions:
http://maps.google.com/?q=Cabelas&mrt=loc&sll=30.444064,-97.813874&spn=0.006313,0.01133
In a browser, this works great, centering the map in my area and bringing up the store near us. But on the iPhone, when the internal maps application intercepts the...
I m the beginner in iphone
Thanks for sending me answer....
I want to break following NSMutable string into substring
200,8,"7 Infinite Loop, Cupertino, CA 95014, USA"
I wanting only Cupertino and CA from above Mutable String.
can it is possible in iphone in objective-C
The above data is the mutable data, which is came from httpreque...
Hi Everyone,
Can we create and get application crash log from iPhone? If yes then, is the result which we will get will be useful?
Thanks,
Aashutosh
...
I am currently trying to implement a grid view in the iPhone SDK, whereby in portrait mode there are 2 items wide and in landscape mode there are 3. I am implementing this using a UITableView as suggested here.
What is the best way to change the number of rows and the view of the UITableViewCell with device rotation?
If anyone knows a ...
Hello fellow coders,
I have created a class, that makes it easy to enter in the amount for a particular price in the same way an ATM machine allows you to enter in an amount, user does not enter the decimal.
This is a generic class called (AmountPicker), so that it can be used among many other classes. I am using it by invoking the pre...
Hello,
I keep track of my 'objects' using the isUpdated instance method of NSManagedObject Class.
When I'm modifying an exisiting object, it works.
If I create a new object using for example:
[NSEntityDescription insertNewObjectForEntityForName:@"Entity" inManagedObjectContext:managedObjectContext]
I can't use the isUpdated, I have...
Hi, I understand that UITableView will call (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath to get each of the cells for the table view. Say I have my data source is fetched over the internet and I have to account for latency. What will be the best way of "stopping" this method from be...
I have viewcontrollers set up to track gestures and commit an action, in this case, change the tab. The code for the viewcontrollers is as follows:
#define HORIZ_SWIPE_DRAG_MIN 100
CGPoint mystartTouchPosition;
BOOL isProcessingListMove;
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches any...
In Monotouch on an iPhone/iPod, how do I detect if there is an internet connection available?
...
Hi,
I'm having a bit of a problem with Apples EAGLView and Texture2D. If I create an instance of EAGLView and draw some textures, it works great. However, whenever I create a second instance of EAGLView, the textures in the new view(s) aren't drawn.
Being new to OpenGL, I've got absolutely now clue as to what is causing this behavior. I...
I want the user to be able to type in only numbers and spaces. I set the keyboardType textField.keyboardType = UIKeyboardTypeNumbersAndPunctuation; but if a user hits space, the keyboard layout switches to letters.
So the user has to switch after each space to the number layout which I want to stop.
I know I can stop entering any space...
If anyone has the app GymBuddy, then they will know what I am talking about. They seem to use the stock Number Pad keyboard but have added a "." button in the lower left as well as a bar across the top to switch to alpha characters. Does anyone know how to do this? Do I make a new view like the keyboard and pull it up and have the button...
I am trying to create a transparent table with an alpha value. In my main loop, I create a background image, add it to the main window, then create a UITableView with a backgroundColor that is transparent and add it to the main window. For some reason the tableView background color is getting set twice on cells with entries. (i.e. a cell...