I'm programmatically creating a UIButton for my app. The few examples I've found online seem straightforward. Following the examples, I can create a button fine but it fails to do the action for TouchDown event I have wired for it. Here is the code for the button inside the ViewDidLoad of the parent view:
_searchButton = UIBu...
Core data's performance on the iPhone is absolutely miserable. Is indexing completely broken or is it just a poor implementation?
I have about 21500 objects of a single type in my core data store (SQLite backing store). The objects are indexed on a UUID which is an NSString (for example, one looks like this: "6b09e200-07b6-11df-a245-002...
Hello!
I have an array of strings.
How might I be able to figure out what index a string is in a array?
Thanks,
Christian Stewart
...
I have a to-one relationship between a Document and Settings model:
On creation of a Document, a corresponding Settings object is created. The models are persisted to core data.
When relaunching after creating a few documents (and the associate settings), the application reloads a list of documents to select using:
// Load delegate ...
Hi I hope someone has an idea about this as I've driven myself crazy for two days trying to find it. I'm making an iphone game in objective c with cocos2d and box2d, paddles, balls, bricks nothing too fancy, the paddle handling code worked perfectly both x and y movement I made an addition of radial gravity code in another function but...
Hi
OpenFient give a sample of how I can get the high scores data using their API. They have a sample here: https://api.openfeint.com/api/games/116834/leaderboards/371803/highscores.xml
If they were my games high scores, how would I put that into a table? Or displayable format in my game? Never done anything like this.
...
This is somewhat related to another question I asked: Translate GPS coordinates to location on PDF Map. That got me to this point, now I'm stuck on the math.
Let's say I have a floor plan of a building, I've taken gps coordinate readings from each corner of the building. Also assume that the floor plan is lined up with the latitude an...
I want to slide the right button and the title in and out (instead of having things just appear and disappear). How can I go about doing this?
...
Hi, I wanted to ask if anyone could help he get this code to work. Nothing is showing up in my MySQL database. Thanks, enbr.
NSString *urlstr = [[NSString alloc] initWithFormat:@"http://mysite.come/myapp/submitrating.php?name=%@&comment=%@&rating=%@",
[selectedItem objectForKey:@"name"], comment.text, selecte...
Hi
In their support OpenFeint give you this, but I don't quite understand. How can I get the leaderboard data, say top 10 and show it in my own UI?
Original link: http://www.openfeint.com/ofdeveloper/index.php/kb/article/000028
[OFHighScoreService getPage:1 forLeaderboard:@"leaderboard_id_string" friendsOnly:NO silently:YES onSuccess:...
Hi all,
I'm testing our app on a few different platforms, and for some reason the Baskerville font doesn't seem to show on an iPhone 3G running OS 3.1.3. Does anyone know why this might be? The systems I've tested which work okay are:
Simulator
iPhone 3GS, iOS 4.0
iPad, iOS 3.2.1
iPod touch 3rd Gen, iOS 4.0.2
Stumped here!
Thanks.....
I'm trying to link third party libraries like fftw3 and sndfile to my iPhone project in Xcode3.2. I got it working in a regular Mac project by setting the "Header Search Path" to "/usr/local/include" and the "Other Linker Flags" to "-lfftw3 -lsndfile" under the project build configuration. However, it gave me "library not found for -lfft...
Hello
I just downloaded xcode and trying to make local notification example. The question is if local notification works in simulator?
thank you
...
I'm trying to confirm whether static variable initialization in Objective-C works the same as it does for C++. Specifically do static variables have the possibility of being instantiated/created before main() is called?
...
I have a table view , within that tableview I'm setting up a section header, which I want to contain an edit button.
I know there is a built in support for something like that if my viewcontroller is part of a navigation chain, but is there a way to do it without it, or the only option is to set a button manualy and trigger an action tha...
Hi I need to add a custom overlay to a MPMoviePlayerViewController but for some reason I can't get it to work. This is my code I have. Right now the custom overlay is just a gray view that covers the whole screen.
NSString *url = [[NSBundle mainBundle] pathForResource:@"mymovie" ofType:@"mp4"];
mViewPlayer = [[MPMoviePlayerViewContr...
Hi..
I am developing an application in which i have to pick the color from the image at pixel location .
It is not giving me proper color , it gives me random color.
I am displaying that color in image view
Here is the code Snippet.....
-(void)colorDummyView:(UIColor *)clrForDummyView
{
colorView=[[UIView alloc] initWithFrame:CGR...
I'm currently testing the latest iOS4 Feature to put my location aware app in the background. Well, it does work! But on the other hand it's quite hart to handle the immense power usage.
The app consumed about 50% battery power in the last four hours. It read the entire official documentation by Apple on this topic but I'm still not su...
below test code causes EXC_BAD_ACCESS when it's scrolled many time.
would somebody like to tell me the problem?
-myview.h---------------------------------------------------
@interface MyView : UINavigationController < UITableViewDataSource, UITableViewDelegate, UINavigationBarDelegate >
{
UITableView* mTableView;
NSMutableArray* ...
I have submitted my first iPhone app and am now waiting for approval. My only fear is having it rejected because of some subtle nuance in the HIG, this is from googling around.
How does Apple treat the HIG, as guidelines or as gospel?
...