I'm trying to move an object from a fetchedresultscontroller to another. The code looks like this:
UISegmentedControl *segmentedControl = self.navigationItem.titleView;
NSManagedObject *managedObject = [fetchedResultsController objectAtIndexPath:indexPath];
NSDate *timeValue = [[managedObject valueForKey:@"timeStamp"] copy];
NSManagedO...
Probably a silly question but I cannot find a way to do it.
I am developing an iPhone application that uses Core Data for it's storage. At one point I want to loop around all the objects in the store and perform and action on them. Is there an easy way to do this? I've tried all manner of for and while loops but can't seem to get anyth...
I am using UItableview grouped and adding images to the cell using cell.imageView setImage:
When I add the image it causing the grouped table to have square corners. I am trying to duplicate the same look as the itunes iphone app which keeps the corner radius.
Can someone point me in the right direction.
Notes using iphone 3.0 as bas...
Hey Guys ,
I am a N00b here .
I print my currency like this :
-(IBAction)buttonPressed1:(id)sender
{
double currency = [Amount1.text doubleValue] + [Amount2.text doubleValue];
SumCurrency.text = [NSString stringWithFormat:@"%0.0f", answer];
}
I just simply want to use NSSNumberFormatter to print the SumCurr...
Hi,
Is there public interface in SDK 3.* to start video recording programmatically? Also how can I customize camera button appearance?
Thanks,
Nava
...
Hi,
I have searched a bit on google, but didn't really found an answer to my question.
I want to create a pin with a different color, e.g. yellow or orange.
How should I do this? It seems that it's not possible to create one sending a UIColor to it. Should I design them myself and somehow change the pin to an own image?
Best regards,
...
The answer to this is probably right under my nose, but I am not seeing it. Maybe someone here could help.
I have a scrollView that allows for vertical scrolling. I set it up:
[clefScrollView addSubview:clefView];
[clefScrollView setContentSize:CGSizeMake(clefView.frame.size.width, clefView.frame.size.height)];
clefScrollView.showsVe...
when i run the iphone application in simulator 3.0 Debug. It working fine.
but the same application not running in simulator 3.0 release. And showing the error
file located and reading login view
2010-03-03 18:55:49.176 FocusPay[4743:207] *** Terminating app due to uncaught
exception 'NSRangeException', reason: '*** -[NSCFArray obje...
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
touchStartTime = [event timestamp];
}
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
NSTimeInterval touchTimeDuration = [event timestamp] - touchStartTime;
}
touchStartTime is defined at class level.
Any idea why this won't recognise the tou...
Suppose I have an model object class Box. In my Box class I add images references (png), audio (mp3) etc...
Rather than store them as NSData it seems better to reference the paths to the files...to save memory.
I would like archive this Box class. On the desktop we would use Document Packages (NSFilewrapper). But this class is not part ...
I am preparing a update for one of my apps.
I want to change the "product name" of this application in Xcode.
Will this give me any problems? I mean, will users that already have bought the application be able to download the update?
What exactly identifies the application for iTunes and the iPhone? The bundle identifier and version o...
I want to my app launch itself after install.I am not sure whether this is true.I note that pxl files usually has the postflight file and it contains "launch" chars and it relating a plist file.So,Can I launch my GUI app via some sh commandline ?
...
I have been browsing SO and various other sites to find out whether this is possible, it definitely seems to be!
The problem I have is every "tutorial" seems to state that the UIButton needs to be inside a UIView of some kind and I can't quite figure out how to get the XIB together to allow the animation.
Any and all help would be grea...
I want to draw a long NSString with UIStringDrawing and linebreakmode "word wrap". The problem is, that it only draws one line also with this linebreakmode parameter. Do i have to calculate this manually and split the string into an array to draw each line?
I don't want to use UILabel with numberOfLines stuff. I put emphasis on performa...
I am dealing with an old code designed for iPhone OS 2.0. In this code I have some instructions that we deprecated on iPhone 3.0.
I am not willing to change the version because I have many customers, specially on iPod Touch, that are still using 2.0. If I update the instructions they will be unable to continue receiving the updates.
Th...
NSNumberFormatter * fmt;
NSNumber * n;
fmt = [ [ NSNumberFormatter alloc ] init ];
n = [ NSNumber numberWithFloat: 10 ];
[ fmt setFormatterBehavior: NSNumberFormatterBehavior10_4 ];
[ fmt setCurrencySymbol: @"$" ];
[ fmt setNumberStyle: NSNumberFormatterCurrencyStyle ];
// NSLog( @"%@", [ fmt stringFromNumber: n ];
[ fmt ...
I'm implementing an in app purchase for an iPhone app.
All is good - store kit is very easy to use and everything is working after few hours of programming.
Problem is : my product is non consumable, thus once I bought it, the app store always says that I already have it and does not let me test the payment again, it just calls transact...
I am dealing with a project designed for iPhone OS 2.0 and I am intending to keep compatibility with this version while offering new OS 3.x functionality.
When I set the base SDK to iPhone OS 3.1.3 and Target OS for 2.0, Xcode gives me this error during compilation.
'stdint.h' file not found
/Developer/usr/lib/clang/1.0.1/include/stdin...
I have an application designed for iPhone OS 2.x.
At some point I have this code
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
//... previous stuff initializing the cell and the identifier
cell = [[[UITableViewCell alloc]
initWithFrame:CGRectZero
reuseIdentif...
Hey everyone,
I am looking to keep track of people in my iPhone app - either adding them from existing contact data, or prompting the user to enter a new contact which will be saved to their Contacts.
I know I can create a persons record add write it to the Contact book, is it possible to display this screen?
Or do I have to implement ...