I am trying to write this header file:
//@class AQPlayer;
//#import "AQPlayer.h"
@interface AQ_PWN_iPhoneViewController : UIViewController {
AQPlayer* player;
}
@end
AQPlayer is a .mm file written in C++.
I tried to make a class forward declaration here, but it complains to me:
error: cannot find interface declaration for '...
Has anyone had any luck to get motionbegan:withevents: to fire in a view controller? Someone had mentioned that I had to set the view controller to be the first responder but souldn't the event get pushed down the responder chain?
...
On all the sample projects from apple's site (like Simple Drill Down) when I do a compile I get "copystrings failed with exit code 71".
And old project of mine compiles. Seems to be be an issue with localized strings:
"copystrings failed with exit code 71" My old project doesn't have any localized strings of course.
here is a screens...
I have a string in my code that I use as a secret when I communicate with my server. What is the best way to encypt this string to ensure that a hacker will not be able to find it out by searching my binary or looking into the memory during run time? (if possible to prevent at all?)
What are some measures you would suggest to at least m...
I have a UITableView correctly populating with data. The table view is inside another view. When this parent view is loaded, how can I set the first row in the table view to have a checkmark?
@implementation PrefViewController
@synthesize label, button, listData, lastIndexPath;
-(void) viewDidLoad{
NSArray *array = [[NSArray al...
I have implemented a large list of views in a UIScrollView. I cannot use a table view because of the nature of my app.
Basically I have a collection of 'blocks' which are view controllers themselves, inside a UIScrollView. Everything is working OK but memory is a problem on very large pages. I have successfully implemented dynamic ad...
I am trying to debug an iPhone app that uses bluetooth for communication. I am basically wondering if the devices should agree on the time down to the millisecond. I am stamping the message when it is sent from one device with CFAbsoluteTimeGetCurrent() and subtracting that from CFAbsoluteTimeGetCurrent() on the other device when the mes...
Same as the above question.
...
Apple's iPhone apps such as Music and Contants use a search bar in a UITableView. When you scroll down so that the search bar moves down, the empty space above the scroll view's contents has a light gray background color (see screenshot).
(Notice that the search bar has a slightly darker edge line at its top. This is not there for the...
The CAMediaTiming Protocol defines a timeOffset property. Now, they say it's a time offset. It sounds straightforward, but howefer, when I set it to 15.0 for example, the animation still imediately starts. The timeOffset doesn't seem to have any effect.
Maybe someone can point that out a little bit?
...
Hi,
I currently have the following piece of code
NSPredicate *pred = [NSPredicate predicateWithFormat:@"SELF contains '-'"];
[resultsArray filterUsingPredicate:pred];
This returns an array with the elements which contain '-'. I want to do the inverse of this so all elements not containing '-' are returned.
Is this possible?
I've tr...
For my understanding, beginTime can be used to say "hey, start at exactly 12:00 'o clock". But how would I tell this with an CFTimeInterval type? I thought that this one is nothing more than a kind of "float" value to specify seconds.
Or what else would be then the difference to the timeOffset property that is specified in CAMediaTiming...
When you drag an iphone GUI element like a list, it scrolls in a physics correct way, and also has a nice bounce effect at the end.
I would like to write a GUI element in my game, without using UIKit. I wonder where is the code implementing this, and if I can use it instead of trying to write something similar.
Any ideas?
...
I'm familiar with using google maps javascript api. Recently I started using mapKit framework for an iphone project, but I'm having a hard time to figure out zooming and setting a region on map.
In google maps api I used to use integer zoom levels like 8, 9, 10 along with straightforward function setZoom(). The only equivalent method I ...
I'm programming an iPhone app using Objective-C.
Here's the error Xcode gives me:
error: assignment of read-only variable 'prop.149'
The code:
// Create CATransition object
CATransition *transition = [CATransition animation];
// Animate over 3/4 of a second
transition.duration = 0.75;
// using the ease in/out timing function
transit...
Hello,
I want to create an application where I want to upload image from the iPhone in my application.
For example, in the contacts directory application, You have an image icon for each of the user and when you click on the icon, it takes you to the picture gallery to upload the photo for that person.
I want to implement the same th...
looking for a free sqlite tool, any suggestions? I need a export, import functionality.
Thanks for the recommendation.
...
Here's the code:
for(int i = 0; i < personListViewController.peopleCount; i++) {
[NSThread detachNewThreadSelector:@selector(getPerson:) toTarget:self withObject:i];
}
getPerson looks like this:
- (void)getPerson:(int)whichPerson { }
When I build this, I get the following :warning: passing argument 3 of 'detachNewThreadSelector:t...
The documentation is not talking really much about what this technically does.
fadeInAnimation.fillMode = kCAFillModeForwards;
I don't really see the effect of this. I have an view with alpha set to 0.0. Then I fade it in. But when I uncomment the line abouth, nothing changes. Same behavior. I'd like to understand what this fillMode r...
I am trying to use PVRTC images instead of PNG's. The problem is, that I am not able to map see them.
Here is my code:
glGenTextures(1, &bg1Texture);
glBindTexture(GL_TEXTURE_2D, bg1Texture);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
NSString *path...