I am getting the following build warning:
ld: warning: in /Users/syalam/Documents/git/stocktwits-iphone/AudioToolbox.framework/AudioToolbox, missing required architecture i386 in file
How can I resolve?
...
I know this question has been asked before, but does anyone know if its possible to programmatically set the background image for the home screen (wallpaper) for the latest iphone OS iOS4.2 (beta). I know it wasn't possible before.
I've seen that you can change the lock screen on a jailbroken phone by writing to /var/mobile/Library/Lock...
I have created a class as follows
@interface sampleClass: UIViewController
{
NSString *currentLocation;
}
@property (nonatomic, copy) NSString *currentLocation;
So, whenever the current GPS changes, a function will be called as follows:
-(void)newLocationUpdate:(NSString *)text {
NSString *temp = [[NSString alloc] initWithStrin...
Hello-
I am writing an iPhone app that needs to calculate the square root of a number about 2000 times every 1/30th of a second. sqrt() works fine on a computer, but the frame rate drops to around 10 FPS on an iPhone or iPad, and I have already optimized the rest of the code. I have heard that this can be sped up dramatically by estimati...
- (void) recordTransaction: (SKPaymentTransaction *) transaction {
NSDictionary * receipt = [transaction.transactionReceipt dictionaryFromAppleResponse];
NSDictionary * purchaseInfo = [[NSData dataFromBase64String: [receipt objectForKey: @"purchase-info"]] dictionaryFromAppleResponse];
NSURL * url = [NSURL URLWithString: @"h...
[self.tableView setContentOffset:CGPointMake(0,48) animated:NO];
I have a UITableView that has a a UIView in the header. My UITableView won't scroll to (0,48) unless animated: YES. I don't want it to animate.
Anyone know whats up?
...
Hello,
I'm trying to use "insertNewObjectForEntityForName", but I've got a problem with my declaration, I wondered if someone had an opinion on this .
This is my implementation :
NSManagedObjectContext *context = [(AppDelegate *)[[UIApplication sharedApplication] delegate] managedObjectContext];
// Create Object
Shots *newShot = (Sho...
If I have an image of a letter "S". How can I create an animation that basically "trace"/flood this letter similar to how one will write it.
...
I have a horizontal UIScrollView. It have 3 pages. It I have 3 UIButtons on each page of the scrollview. Total of 9 UIButtons. I need to set a different color when a button is touched, so that I can differentiate that touched button with the other buttons.
I tried setColor by checking BOOL values. It is working for single page.
When I ...
example: word with number in string
NSString *str = [NSString stringWithFormat:@"this is an 101 example1 string"]
Since example1 has a number in the end and i want to remove it. I can break it into an array and filter it out using predicate, but that seems slow to me since I need to do like a million of these.
What would be a more ...
I am in the process of investigating whether it is possible to prevent mobile Safari from caching certain file. I went through a few posts about controlling caches in SO (e.g. meta tag, HTTP headers), and a few blog post. This one seems to implies that components are not cached unless either Expires or Cache-Control in the response heade...
I am just trying to make a timer. I would like to use UIDatePickerModeCountDownTimer mode of the UIDatePicker, so that when the user simply selects say 15 mins in the picker, they are passed back to a screen that shows the value of 15 mins in a label that they can then count down from.
As I have tried to get the value from the DatePicke...
I can't find anywhere definitively, if you build an app against the iOS 4 SDK, to thus support multitasking, does that mean the app won't work in iOS 3? If not, how can you support iOS features like multitasking but still support iOS 3? I'm sorry if there are Apple docs on this, I'm happy to read them, I just can't find them. Thank you...
For some reason, the expand button the arrow points to in the screenshot below causes the view controller that initiated video playback to animate back over top of the video, but without stopping video playback which means you can still hear the audio even though the video is no longer visible. I've tried other movie control styles, but ...
I'm researching EventKit for an upcoming project, and I have a question that the documentation doesn't clearly answer. I could whip up a quick test, but it's quicker just to ask:
Let's say I use eventsMatchingPredicate: to fetch an array of events that occur in a given time span. Now let's assume that one event exists in my EKEventSto...
I found an example of a paging UIScrollView in Apple's developer docs and it's just what I want for my application. I have a main view with a "Help" button that I want to present a view that users can page through to see all the help topics. The sample is at:
https://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptu...
My app is a question/answer type forum for the iphone, where users view questions and answer. I'd like to implement a thumbs up system so users can give good answers the "thumbs" up. My backend is all php, so essentially when a user posts a question or answer, the data is passed via URL to my php script, which then inputs the data to my ...
I was looking up jquery checkbox scripts/plugins, and I came across this one: Jquery Checkbox Plugin
Why is it 8kb? that's absolutely HUGE for something that could be so incredibly simple, right? I'm not that good at Javascript/Jquery, but I know that you can set up a click event on an image that toggles a checkbox that has the same cla...
I am trying to set the text of a UILabel to be equal to the name of the day of the week represented in an NSDateComponents. I am using the following code:
NSDateComponents *dateComponents = [[[NSDateComponents alloc] init] autorelease];
dateComponents.weekday = 1; //Sunday
NSString * const weekdayNames[8] = {@"Array starts at 1", @"Sun...
In my iPhone app, I display a list of names. I want the name to be formatted either as
("First Name" "Last Name") or as ("Last Name, "First Name")
Is it possible to know the users' contact app preference using a API?
...