I have a UITextView within a UITableView cell. I have been unable to get the keyboard to consistently resign after editing. Detecting DidEndEditing hasn't worked. Adding my own "done" button to the toolbar brings intermittent results. Advice?
(Note: This is UITextView not UITextField. Thanks)
...
I need to change the color of disclosureIndicatorView accessory in the tableView cell.
I think there are two way to get this done. But not able to figure out which onez the optimum. So here is what I think I can do.
There is a property of tableViewCell - accessoryView. So I can use setAccessoryView:(UIView *)view and pass view as the im...
This is my -mapView:viewForAnnotation method which drops pins when i create annotation views. But when i set mapView.showsUserLocation = YES; in -viewDidLoad, i get a pin dropped on Infinite Loop (expected - in simulator) and not the normal blue dot.
- (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation...
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...
In my UIView nib file, I've got a UITableView which takes up about half the screen. The correpsponding .h and .m files are:
// helloViewController.h
#import <UIKit/UIKit.h>
@interface helloViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> {
NSArray *locationArray;
}
@property (nonatomic, retain) NSArray ...
I installed a new version of an app we are developing, and also a new ad hoc provisioning profile (the old one had expired). I removed the app and profile from the phone and from itunes. Added the new profile and app to itunes and synched. All seemed well- the new profile was on the phone and the new app too. But when trying to launch th...
Is it possible to display 1000.99 as 1,000.99 using
[NSString stringWithFormat:@"£%0.2f", 1000.99]
Please guide me if I am not on the right track to achieve this?
...
I'm trying to create an offscreen render buffer in OpenGL ES on the iPhone. I've created the buffer like this:
glGenFramebuffersOES(1, &offscreenFramebuffer);
glBindFramebufferOES(GL_FRAMEBUFFER_OES, offscreenFramebuffer);
glGenRenderbuffersOES(1, &offscreenRenderbuffer);
glBindRenderbufferOES(GL_RENDERBUFFER_OES, offscreenRen...
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
...
Code:
//pick one filename
int numFileNames = [imageArray count];
int chosen = arc4random() % numFileNames;
NSString *oneFilename = [imageArray objectAtIndex: chosen];
thanks!!
...
I have gone through following link
http://zachwaugh.com/2009/03/programmatically-retrieving-ip-address-of-iphone/
& I have also tried this one ( but this isn't recognized by apple )
http://appsamuck.com/day4.html
Oke let me specify what is my need .. . ..
I just want that when user tap on "wifi" button.
Reports stored in documents...
I would like to detect iPhone OS version in the app, can you post sample code as well. I tried using macro that didn't help.
Thanks in advance
...
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'm using ASIHttpRequests and an ASINetworkQueue in an iphone app to retrieve some 100k XML files and a lot of thumbnails from a web service. I'd like to cache the requests in the style of NSURLCache. ASI doesn't seem to support caching as is, and I looked at the code and it drops to C to create the requests, so inserting the NSURLCache ...
I have a question. WHen I changed the executable name in my info.plist file in Xcode, the simulator would no longer load the application. When I changed it back to '${EXECUTABLE_NAME}', the simulator worked fine. Any reason as to why this would affect the simulator?
...
I have basic C knowledge. I am trying to learn iPhone App Development.
Should I first learn ObjC for Mac, using the book by Stephen G. Kochan, then move to transforming these principles to iPhone Dev? Or would learning ObjC without specific iPhone app tutorials first confuse me later when I try to move my ObjC knowledge to iPhone App de...
Hi,
In a very small number of cases in my iphone app, I get a crash after the for loop in the code below:
ABAddressBookRef addressBookInit = ABAddressBookCreate();
CFMutableArrayRef abContacts =
(CFMutableArrayRef)ABAddressBookCopyArrayOfAllPeople(addressBookInit); // get array of all contacts
CFArraySortValues (abContacts, CFRangeMake...
I'd like to do several things to a MP4 video, but I am not sure where to start.
Some things I'd like to do:
- Change the color of the video to Black & White, Sepia, etc.
- Add animations, such as fade in, fade out, custom images/text moving around
- Embed text into the video
Essentially, the basic features of a video editing program....
This is probably obvious, but I'm a bit of a newbie and have spent hours trying to figure this out.
In viewDidLoad() I have a call to a function on an MGTwitterEngine object (custom object), with an input. If the request (to Twitter, in this case) is successful, it calls an appropriate delegate method.
In viewDidLoad(), it's like thi...
When I get a new image taken by the user with the camera and save its checksum, when the user later reloads that same image from the camera roll, the checksum is different. Could this be because the image saved in camera roll is in JPG format, which is lossy, and therefore its pixels are different? I am trying to use the checksum to dete...