iphone

Reranging a uitableview

Hallo @ All I ran into the same problem as desciped in http://stackoverflow.com/questions/1884491/crashing-while-trying-to-move-uitableview-rows! All I want to do is on specific reranging operations insert a new cell or delet the selected one! Sometimes I get a * Assertion failure in -[_UITableViewUpdateSupport _setupAnimationForReord...

How can display gif on a subview in iPhone using glgif?

I want to display a gif image on a subview in iPhone. The sample code glgif shows the gif image on the controller's root view, but when I make the following modifications, the application just crashes: IBOutlet UIView *gifView; // gifView is added as a subview of controller's root view //PlayerView *plView = (PlayerView *)self.view; P...

tabBarItem's title didn't appear

hi, i am using a tab bar in a view controller and in "viewDidLoad" method i declare it: normalView =[[NormalViewController alloc] initWithSigne:[[normalAstro objectAtIndex:signIndex]objectForKey :@"name"] andDescription:[[normalAstro objectAtIndex:signIndex]objectForKey :@"description"]] ; [controllers addObject:normalView]; chine...

How to show button ‘Done’ on number pad on iPhone OS 4?

I'd like to add a Done button to the iPhone number pad keyboard. There's even a handy space at the bottom left for just such a button. Previously, I was using a similar trick to those described in Question 584538 and Luzian Scherrer's excellent blog post, but that stopped working in iOS 4. I can do it by creating a custom inputView, but...

What kind of category is this and where's the implementation?

The data modeler generated this class for me: @interface Cat : NSManagedObject { } @property (nonatomic, retain) NSSet* event; @end @interface Cat (CoreDataGeneratedAccessors) - (void)addEventObject:(NSManagedObject *)value; - (void)removeEventObject:(NSManagedObject *)value; - (void)addEvent:(NSSet *)value; - (void)removeEvent:(...

populate uipopover with thumbs and text

hi all! I'm drawing a popover after a button clicked and I wish view into the popover a grid with a square thumb of an image and some text.... thanks! ...

Is it possible to make an @property private?

Someone said that I could add an private keyword to @property(...) ... really? ...

iPhone Safari Vs PC Safari

This js-code works in safari on my pc, but not on a ipod touch safari (has also tested it on a iphone - still not working). $(document).ready(function(){ $.ajax({ type: "GET", url: "list.xml", dataType: "xml", cache: false, success: function...

Export a Quick Model from Xcode?

I was looking for a quick way to generate UML like documentation for my project when I stumbled across the Quick Model menu item in Xcode. I was wondering if there were a way to export these diagrams in a non-platform-specific file format like png or pdf? Basically I want to take some quick visual diagrams (illustrating component relatio...

ABPeoplePicker select and return SELECTED phone number

Under (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *) peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier{} is it possible to get returned the phone...

How to correctly present a popover from a UITableViewCell with UIPopoverArrowDirectionRight or UIPopoverArrowDirectionLeft

I always try to present a popover from a cell inside a tableView this way: [myPopover presentPopoverFromRect:cell.frame inView:self.tableView permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; but I cannot use UIPopoverArrowDirectionRight or Left, because, depending on the position of the ipad (po...

[UIView didCreateWorkout:Type:Distance:Time:Message:]: unrecognized selector sent to instance.

Hello, I'm getting the above error and have been looking at it all day, I'm getting no where fast. Anyone any ideas ? I'm new to IPhone Development. Code Below: WorkoutAppDelegate.h...: #import "WorkoutViewController.h" @interface WorkoutAppDelegate : NSObject <UIApplicationDelegate> { NSManagedObjectModel *managedObjectModel; ...

how to resign keyBoard as a firstResponder from a textView??

Hi I want to resign the keyboard from the text view as a first responder.I want as soon as user hits the return key after editing in a textView the keyboard should resign.But I am not sure how should I do this??? ...

How to make horizontal paging without vertical paging in UIScrollView.

I am making digital comic now. My application has horizontal paging when without zooming. But when zooming, picture's height is over the screen height. So application has vertical paging. But I don't need vertical paging. i want to make horizontal paging without vertical paging during zooiming. Please teach me. ...

how does UITextView delegate knows when to call textViewDidEndEditing

I am developing an application in which i need to call a perticular method when user hits return button.I am using UITextView.Now the problem is that when i hit return key ,cursor goes to next line and i am not able to retrive the action in my code.I tried to write the same code in textViewDidEndEditing: delegate method but it looks as...

how to programmatically display version of target in iphone app/xcode

How can i programmatically get the value of the "target version" like in the image below. As seen in the Properties window of the target of my xcode project. I want to display this in the splash screen of my app so i know which version people are using? Hope this makes sense what i'm asking. ...

Simple JPG/HTML Not Showing Up in iPhone

I'm not familiar with iPhones wants and needs, nor do I have one, but a client wants a screen cap of his site to show up when an iPhone user comes around so I created an .htaccess redirect to an iPhone specific page with this bit of code... RewriteEngine on RewriteCond %{HTTP_USER_AGENT} iPhone RewriteCond %{REQUEST_URI} !^/iPhone/ Rewr...

Is there anyway to access root on iPhone using NSFileManager?

I was trying to access the root directory and list the contents of it but I got 0 folders listed there. I s there anyway to access it for instance to query the SMS.db under root/SMS folder. Thank you all in advance. ...

Compress/Decompress NSString in objective-c (iphone) using GZIP or deflate

Hi, I have a web-service running on Windows Azure which returns JSON that I consume in my iPhone app. Unfortunately, Windows Azure doesn't seem to support the compression of dynamic responses yet (long story) so I decided to get around it by returning an uncompressed JSON package, which contains a compressed (using GZIP) string. e.g ...

AppDelegate viewController memory leak?

I am just curious with regards to the correct way to create a view controller programatically. When I compile this code with the static analyser I get a leak (as you would expect) from the alloc. Should I just leave it as it needs to stay until the app exits anyways, or is there a cleaner way? - (BOOL)application:(UIApplication *)applic...