I am building an iPhone Wikipeida game app, that requires modifying the default Wiki HTML a little bit (mostly simplifying the page).
So far I am directly downloading the HTML output from en.wikipedia.org/wiki/Article_Foo to a python Google App Engine, and then modify its CSS and HTML structure, cache it, and finally output to iPhone. I...
I have to initialize a lot of different types of objects based on an integer parameter. They all have the same overall initialization methods.
At the moment I have the following code
#def APPLE 1
#def PEAR 2
switch (t)
{
case APPLE:
newobj = [[FApple alloc] init];
break;
case PEAR:
newobj = [[FPear] alloc] ini...
I have the following class structure for custom UITableViewCells:
NumericEntryCell
- Contains method for controlling max value that can be entered into a textbox.
SliderCell
- inherits from NEC and contains methods for handling slider-control of textbox value
TextOnlyCell
- just contains a textbox
CellA
- inherits from Sl...
I want to change the color on the navigation bar and the documentation states not to attempt to change the 'alpha' value. So, how can I set a color that is not the SDK defined values (e.g., [UIColor redColor], brownColor, etc.) if all the constructors provide an alpha value? I tried getting the current alpha value but that did not help...
I have an iPhone app that makes use of the AddressBook.framework and uses Core Data to store these contacts. In order to make sure I update my own database when the Address Book is updated (whether via MobileMe or editing within my own app), I am subscribing to the notification as to when the Address Book is updating. I call this on star...
Hi,
How I can write a phone number in the xhtml file and when the user clicks (on the number) the iphone call automatically (to that number)?
Any ideas?
...
I'm trying link 40 buttons to one event handler method and then do the
processing work from one method instead of 40. I know how to link it
but once I get there I don't know how to distinguish what button was
pressed. Does anyone know how to reference the button object sender id
or is there another way to solve this problem?
Any hel...
I'm attempted to add an open source project to my iphone project and added the source files and the libraries to my project folder and referenced them inside of my project. However, when I try to build the project the linked static libraries are giving me a "file is not of required architecture" warning. Any ideas?
...
I want to use opencv frequently for iPhone development, so if there is existing xcode template , that will save me a lot time. Also for others who have same purpose.
If not, I need to do it myself.
Thanks for let me know if you know.
...
What is the difference between "UIAccelerometer" and "CLLocationManager"? Both give me x, y and z axis as result.
UIAccelerometer
X -18.000
Y -03.500
Z -41.000
CLLocationManager
X -0.036
Y -0.002
Z -1.069
Is this information from the same sensors with different formatting? Or are there "real" differences?
Thanks!
...
Hey there,
I've got an app that's been in the app store for a while and functions perfectly on OS 3.1 - 3.13. However, when tested on 4.0b2 I noticed that it crashes in the same place every time, but only on the device, never on the simulator. I'm using a 3GS to test.
On loadView I initialize an NSNumberFormatter object which is decl...
The dropdown in XCode shows a base SDK of 3.2, but my iPod Touch (2nd generation), running OS 3.1.3, will run the app just fine in debug mode. (Command + Return/Enter)
What is the actual base SDK of my iPhone/iPod touch version of the app and how can I change this? Changing it by right clicking on the project name in the "Groups and Fil...
Anyone know how to detect two fingers tap on iPhone?
Thanks in advance!
...
I have a custom UIImageView class that creates thumbnails (UIImageView) and each thumbnail has a label.
The label is created by another class. The label class creates a UIImageView and a UITextView on top of it.
This is the main thumbnail class' init method:
- (id)initWithFrame:(CGRect)frame
{
if ([super initWithFrame:frame] == ni...
Hi,
Does somebody have a good example of adding an overlay view (that covers the whole screen) with an activity indicator in the middle?
TIA
...
Hello,
I'm developing what it's turning into a "cross-platform" 2D Game Engine, my initial platform target is iPhone OS, but could move on to Android or even some console like the PSP, or Nintendo DS, I want to keep my options open.
My engine is developed in C++, and have been reading a lot about Box2D and Chipmunk but still I can't d...
Hi,
I am trying to page a webpage, so disable scrolling, then the second page is the same webpage scrolled down the page height.
The problem I have is that the bottom of the first page often has 1/2 a line of text, then the second page has the bottom half of the line.
Is there a way to ensure the entire line falls on one of the pages?...
I would like to duplicate the view switching functionality found in mobile safari's tab feature. I have implemented the scrollview containing the view screenshots, however, when a view is selected how would I duplicate the zoom animation and the title and toolbars appearing and vice-versa?
...
I created my OwnCCSprite, and it get the implemented CCStandardTouchDelegate protocol, and ccTouchesBegan event. But it seems not working. When I click the CCSprite, the ccTouchesBegan in the CCLayer is called, but the CCSprite's ccTouchesBegan can't called. How can I detect the CCSprite is being touched in CCLayer / OwnCCSprite? or I ne...
I have a button on a view, I want to add another button next to it when the first button is touched.
Therefore I need it's top left corner to do the math.
Here's what is puzzling me greatly:
// this code is executed when the button is pressed
NSLog(@"X:%f",moreButton.frame.origin.x);
that returns on the first and second click the foll...