I am trying to learn something basic and very important to develop decent iPhone apps. But I don't know enough to understand what I am not getting. Here's the question:
I have a window project, with 2 views - View1, View2. On each view (thru IB) I dropped an imageView control. When I call a function in view1 I want to set the image cont...
Hi,
I am developing an application in which I am using a login form at first screen. If the user is new he is takne to the signup form and after that he is also taken to the home page as a normal user.
Now my question is "If the new user presses back btn, how can I direct him back to the login page and not to the sign-up forms and all ...
Hi,
I have code snippet,
which is like this...
#import <sqlite3.h>
@interface DatabaseClass : NSObject {
sqlite3 *database;
}
@property ( nonatomic, retain ) database;//////this//////
@end
In the implementation file;
#import "DatabaseClass.h"
@implementation DatabaseClass
@synthesize database;//////this///////
@end
My...
Hi
I'm trying to iterate over a collection of objects and create an annotation for each object as seen in this code, but at the closing } of the for loop i get this error Selector element does not have valid object type. What does this mean?
for (POI myPOI in appDelegate.pois){
CLLocationCoordinate2D location;
location.l...
In Interface Builder, I have a UIImageView in a nib and have selected an image from the View Attributes pane. The image loads fine in the simulator but not on my device in debug mode. I don't get any errors. Just no image.
I can see the particular image in my Target's Copy Bundle Resources folder. Any ideas why it isn't showing on t...
Hi ,
i have NSstring that contain encoded utf8 i want to decode it.
how can i do that?
i try this but it didn't work
NSString *decodedString = [NSString stringWithUTF8String:[encodedString cStringUsingEncoding:[NSString defaultCStringEncoding]]];
thanks
...
I have a UIImagePickerController subclass, and I would like to detect when the user presses the "retake" button.
Is that possible... what delegate method gets called? I looked at the docs but I can't find anything: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIImagePickerControllerDelegate%5FProtocol/UIImage...
I have the following set up in a navigation controller.
The root is a list of categories (banks, hotels etc) and each category has a child view below it containing a table view of items (Bank A, Bank B etc). When i select 'Banks' i see my banks (list coming from from web service), but then i go up one level to my root, and select 'Hotel...
Is the little blue mail dot the iPhone mail program uses to signify new mail, on each tableview cell, available in the SDK? Or, it is available for download some where on the Internet?
...
In my app, when a user touches a table cell, the cell is disabled and the cell's reorder control disappears. If they touch it again, the cell is enabled and the reorder control reappears. The way I'm currently implementing this is by calling reloadRowsAtIndexPaths:withRowAnimation:, but this is sloooowww. If I just change the showsReorde...
NSString *temp = [self randomBallPick:temp];
the following error:
Pass-by-value argument in message expression is undefined
why?
-(NSString*) randomBallPick:(NSString*) oneFilename
{
//create an array of filenames
NSMutableArray *imageArray = [[NSMutableArray alloc] init];
for (int c=0;c<37;c++)
{
NSString *imag...
When a user uploads something via my app, I create an ASIFormDataRequest object to make the POST.
When the user is offline, I would like to write a ASIFormDataRequest object to file and send it later.
Is there a built in way to serialize an object like this in Objective C, or do I have to write something from scratch?
...
In the following, how can I send two arguments in togButton method? I tried, but it did not work.
[button addTarget:self action:@selector(togButton:)
forControlEvents:UIControlEventTouchUpInside];
...
-(IBAction)shareList:(id)sender
{
MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:@"Share Shopping List "];
[controller setMessageBody:@"Friend Shopping List Table" isHTML:NO];
[self presentModalViewController:controller animated:YES]...
Hi all,
how to use how to use NSRunLoop in objective-C and wait for some variable to change value ?
Thanks
...
Hi guys,
I need to capture a screen shot of a video playing in mpmovieplayer controller, but all I get is a red screen (I made the coverView with red background and 0.5 alpha).
Here is the code:
NSArray *windows = [[UIApplication sharedApplication] windows];
if ([windows count] > 1)
{
UIWindow *moviePlayerWindow = [[UIApplication sh...
Hi all,
My application get crash in apple's testing phase. I have crash log. When I am execute symbolicatecrash command, I get an error
Can't exec "/usr/bin/xcode-select": No such file or directory at /usr/bin/symbolicatecrash
or some how command get executed then it shows same crash file.
My .app & .dSYM files are in same directory....
Hello,
For an iPhone app, I'm working on a feature that allows users to make automated tweets which are posted by a server (if they'd like to allow it). I've chosen to use OAuth for Twitter authentication.
I've successfully gotten permission using OAuth for the app itself to post directly, and I can easily see how I could have users...
In an iPhone app I'm developing, I need to send an email programmatically (read, not allowing the user to see where the email is going) similar to the PHP mail() function. Is there a way to do that?
Thanks in advance.
...
I recently ran into a problem that I couldn't find discussed anywhere on the internet - I was initializing an AVAudioPlayer to play an audio file, and getting the following error:
Error Domain=NSOSStatusErrorDomain Code=-50 "Operation could not be completed. (OSStatus error -50.)
As it turns out, I had made a mistake creating my NSURL...