Hi guys,
My main view PlayGameViewController has a subview (actually 2 of them) called CardViewController.
CardViewController creates some buttons programmatically
-(void) initialiseButtons
{
NSLog(@"initialiseButtons %d",totalButtons);
int ypos = playerImage.frame.origin.y + playerImage.frame.size.height + 42;
for(...
Hello,
How can I go about adding a view that appears until the background task finishes (the task in question populates a view and takes ~5 seconds).
Thanks,
...
Here's what I'm trying to do.
I have a single view ("primaryView"), controlled by a customized view controller. primaryView contains a scrollview, which contains an image. Sitting on top of the scroll view (NOT inside it) is a small view ("buttonsView") containing a few buttons.
Basically, when the user rotates the phone, I want butt...
Hi,
I have been studying how to display a modal view with UIAlertView for a few hours and I understood that showing it does not "block" the code (the modal window is displayed and the program keeps running - we must use delegate to catch the selected actions on this modal window). Then I studied several examples and noticed that every e...
Hi,
I want to create a basic app where you have 8 numbered buttons, with a randomly generated number on each. You are given a total value, and have to click on buttons whose numbers add up to that value.
I need to show which buttons have been 'used' already (I hope to use the selected state for that, as I am using a custom button).
W...
Hi, I can get the ShareKit demo from github to compile using the iOS 4.1 SDK, but when I import it into my project exactly how it's described on the ShareKit site, after compiling I'm getting 4,448 errors. It looks like I'm missing a framework, but I have the required frameworks listed. Maybe there's some kind of framework conflict. Here...
Hello,
I am using UIDatePicker in my App, which works fine for a Gregorian calendar.
But I want to use a Non-Gregorian calendar with the DatePicker, which I didn't succeed to do it!
I need it to do some conversion from Non-Gregorian to Gregorian dates, so it must work the same whatever the iPhone 'Locales' are.
Please can you answer th...
system.logElementTree();
var target = UIATarget.localTarget();
target.onAlert = function onAlert(alert) {
UIALogger.logDebug("There was an alert!");
target.onAlert.buttons()["No"].tap({x:164,y:278});
return false;
even though no option is clicked systen not performing any action
Can anyone please help me ...
...
Hi.
i have an application that must run on portrait and landscape.
All is working, but i have this issue:
i have the Navigation Controller in this way
http://img225.imageshack.us/i/schermata20100913a23511.png/
immediately under it there is another view(fixed static position, overlaying the rear view)
in the image, it contains the n...
I'm trying to get videos to play from my server on the iPhone device. I'm using the following method to do so, however, it only works in the simulator; and on my iPhone 4. It doesn't work on iPhone 3G?
If I call this method on the iPhone 3G, it opens the video modal screen, starts to load the video, and then closes the modal screen abr...
Hi,
I wrote a subclass of UIGestureRecognizer using the initWithTarget constructor as well as addTarget, removeTarget methods.
Now, my problem is that I am unable to find any accessors or helper methods to call these targets actions.
I believe there should be any List/Array of targets and actions ...
The docs are somehow weak in tha...
I've written an iPhone app to display available bandwidth for my satellite modem, but I'm interested in allowing the timer to continue to fire in the background (though with much greater time between ticks) and display UILocalNotifications during events such as reaching a 20% remaining limit. I think the answer to this is "You can't", bu...
So I have multiple textareas on my page that are editable depending on a users status. The problem is that even when a user clicks on a textarea that they are not allowed to edit, the keyboard comes up on mobile safari. The user can't actually edit the textarea, but it's really annoying/looks bad. I was thinking of maybe making it dis...
For some reason my texture are not drawing, even though my code looks exactly the same as an old project that did. So far, the vertexes and TexCoords look fine, as I am having white squares being drawn, where the texture should be drawn instead.
The process so far goes,
I load up a Contoller and in loadView, I
glEnable(GL_TEXTURE_2D);
...
Until now all my database access has been reading, but now I need to update (and after this insert)
I have a database containing 'shows' in the app directory (read-only) and that's ok for me (I don't want to copy it to the documents folder as it's rather big and I don't need to change stuff in it.
But I want the user to select some sh...
I have an existing iPhone app that I'm trying to convert into a universal app for both iPhone and iPad. Everything seems to work fine when I run it on an iPad device, but I get the following runtime error when I try to run in the iPad simulator:
dyld: Symbol not found: _CFXMLNodeGetInfoPtr
Referenced from: /System/Library/Frameworks/S...
Hi there,
I have a series of targets, and each one looks at a global variable I am currently storing in a constants file for the name of the directory in which that app's resources live. However, this means that I have to change this value each time i change the target, which is a terrible process.
What is the best way to change that ...
Hi,
I have what i thought was a relatively simple question but i cannot find an answer to it yet. I have an iPhone app that uses GPS on one of its screens. I want to disable this screen using code when the app loads,so disable it when a iPod touch is being used. This is so it can still be useful on a iPod touch as there is a lot of funct...
I'm using [NSArray filteredArrayUsingPredicate] to get an array of objects that match certain conditions within an original array of 20,000 objects. Is it possible to limit the number of results that this method returns in order to speed it up?
This would be similar to the LIMIT clause in SQL. Thanks.
...
Hey guys, I was working on some particle systems and this was the only way I could figure out to set up the arrays:
if (vertices){
free(vertices);
}
if (textures){
free(textures);
}
vertices = malloc(sizeof(point3D) * 4 * [particles count]);
textures = malloc(sizeof(point2D) * 4 * [particles count]);
The particles constantly ...