I am getting ready to submit an educational app to Apple for review. The app is somewhat like a series of flash cards, and working through the entire app would require thousands of "flips".
In the hopes of shortening the review process and preserving some poor tester's sanity should s/he want to see the end state of the app, I am consi...
I am trying to install a python blue tooth library on my jail broken iPod touch but get errors on the install
trying to install lightblue i get an error to do with finding the correct complier, i have installed gcc but cannot find any ports of xcodebuild
http://pastebin.com/fdgzYjhr
and trying to install light blue there seems to be a...
I have an app that I want to be able to connect to Facebook and post to the user's wall. I have the following code:
(void)viewDidLoad {
static NSString* kApiKey = @"PRIVATE";
static NSString* kApiSecret = @"PRIVATE";
_session = [[FBSession sessionForApplication:kApiKey secret:kApiSecret delegate:self] retain];
// Load a previous sess...
Hi guys,
I draw some GIS data dynamically, based on user's control, into CGImageRef.
But how to play these frame like an animation efficiently in an UIImageView?
After searching and surveying, the way to play an animation in UIImageView is preloading all images you need,and invoking the startanimating method,like this:
myImageView.anim...
Hi All,
I heard that NSAttributedString is added in iPhone but when I use the key NSForegroundColorAttributeName for setting the color i get an error saying "NSForegroundColorAttributeName undeclared". Am I missing anything? Please help me.
Regards
Yallappa
...
Hi all,
Sorry but I found no clear answer on that.
I have an iphone app with a tab bar and a UINavigationController in each tab.
The interface is built with Interface Builder, and in the first tab there is a UITableView.
I have prepared the xib with main view (A) containing a table (T) and an image (IMG) background behind (image as subv...
I know this is a wack question, but it is valid to performSelectorInBackground: on an iPhone apps' main thread? I am aware of performSelectorOnMainThread: but I was just wondering if performSelectorInBackground: can also be used on the main thread. My understanding is it cannot, because performSelectorInBackground: spawns a new thread ea...
Occasional reader and first time question asker, so please be gentle :)
I am creating a Managed Object (Account), that is being passed into a child view controller where its being set in a property that is retained.
Account * account = [[Account alloc] initWithEntity:entity insertIntoManagedObjectContext:context];
AddAccountViewControl...
Hi,
I have scrollview to show images. I need timer to show images one after another for every 5 seconds. How to initiate UIScrollView event to move next after 5 sec using timer?
Thank you
vb
...
I started a new project with XCode and I have set up the subversion repository. For some weird reason, in this project the "Add to repository" menu items are not working, both in the main menu and by right clicking a file. If the file is in the repository I can do all the usual things. Newly added files do not show with a question mark e...
Hi,
I'm trying to compare two strings with each other on the iphone, but the IF statement is always false. Here's my code:
NSLog([[UIDevice currentDevice]uniqueIdentifier]);
if ([[[UIDevice currentDevice]uniqueIdentifier] compare:[[NSUserDefaults standardUserDefaults] valueForKey:@"id"]] == NSOrderedSame) {
//OK
NSLog("Do stuff...
Hi I have this code:
NSInteger *count = [monLessonArrayA count];
for (i = 0; i < count; i++) {
arrayVar = [monLessonArrayA objectAtIndex:i];
}
I get an error saying i is undeclared, how can I set the objectAtIndex to i so I can loop through increasing it each time?
Thanks.
...
Hi
I have a bunch of NSStrings in a NSMutableArray. I have added them to the array and now I want to loop through the array, getting each object in it (the strings) and set them to a common value @"No Lessons".
This is how I have the loop so far: But how can I get the object then set it? Currently its fairly simple, just getting loopin...
i am new to iPhone and cocos2d in general,
i m reading tutorials and tried to come up with application that contains a menu
i m using cocos2d menu items
the problem is that i found while testing my applications that the buttons respond to clicks on some area around the button (not only the button sprite rectangle boundary), and while ...
I have been trying to solve this bug for 2 days straight and can't seem to find the problem.
I sub-classed a standard ViewController like so:
@interface ToolbarVC : UIViewController {
IBOutlet UIButton* button1;
IBOutlet UIButton* button2;
IBOutlet UIButton* button3;
IBOutlet UIButton* button4;
}
@property(nonatomic, retain) IBOutl...
I wish to use the foreign keys facility, and thus upgraded my version of sqlite to the latest stable version 3.7.2.
I've verified the version in terminal by entering in:
> whereis sqlite3
= /usr/bin/sqlite3
> sqlite3 --version
= 3.7.2
Now, when I come to create a new database using FireFox's SQL Manager plugin it reports it is using...
Hi
I want to perform a simple rotation with core animation using this code:
[UIImageView beginAnimations:nil context:nil];
[UIImageView setAnimationDuration:1];
[UIImageView setAnimationRepeatCount:5];
CATransform3D rotationTransform = CATransform3DIdentity;
rotationTransform = CATransform3DRotate(rotationTran...
Hi there
I was wondering if it was possible to have an "alarm" style app that would run at a certain time? Would the application have to be run and then left open?
I know with multi-tasking on the iPhone 4 a user could open the app and run it in the background. If my original question isn't possible, is it possible to bring an app run...
Hi all,
I have a UITableView and its data gets refreshed from a server connection. For the UITableViewcell, I have layout some labels across the row. So it can consider as a grid with UILabels(total no of labels = table rows * table columns).
When the data gets refreshed I have added an animation for the UILabel to highlight the table ...
Hello,
I would like to know if I can do this
VIEW 1: use NSFetchedResultsController on TABLEA to retrieve the data, display in a table view and take actions to save it
NSFetchedResultsController *aFetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:referringObject ...