cocoa-touch

Changes to Application Preferences not Saving or Not Immediately Available?

I've successfully created my application's Settings.bundle and the items I need within it. I can open the panel in the Settings app, change values, exit the Settings app go back in and confirm they are as I left them. I launch my app and read those preferences, I don't see the changes - not after the first launch. However, if I ex...

Iphone SDK Help me for a request to show only one category from data plist !

Hi ! I look for a friends who can help me for long time ! I'm beginner and I try to understand... HOW I can make a request to show all data (from plist) in SAME category (NOT ALL !) for exemple : show only the movie have : genre = Action Please help me ... Thanks a lot ! Excuse my bad english ! Is it in this code I must make it or an ...

iPad UIWebView position a UIPopoverController view at a href link coords

I'm hoping that this question isn't a stupid one but how does one go about positioning a UIPopoverController view over a UIWebView so that the popup view arrow points at the UIWebView link that was clicked to show it? I'm using the delegate method; -(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest ...

CLLocationManager initializing, releasing, initializing and then releasing causes crash?

I have a use case where the application will automatically attempt to retrieve a location, the user can deny the permission, then the user can trigger the app to look for the location again (this time allowing it), but then the app will crash. Here's the basic code and use case steps, below, what am I doing wrong? @interface AppViewCon...

UITableView in Popover scrolls out of bounds when keyboard is opened

Hi, I have a popover that contains a UITableView. This UITableView has a cell with a text field in it: When the popover opens near the bottom of the screen, and I tap the text field to edit it, the keyboard comes up, and the popover moves up to avoid being covered by the keyboard. But as it moves up, the table view in the popover scr...

UITableView editing accessory view divider color

I have a UITableView with the editingAccessoryType set to UITableViewCellAccessoryDisclosureIndicator. The result is this: It works, but I have a custom background, and therefore a custom separator color. However, the divider between the rearrange control and the accessory is set to the same standard table view separator color. Is the...

Check if constant is defined at runtime in Obj-C

To, for example, access variables in a NSDictionary Cocoa frameworks often define keys, such as UIKeyboardBoundsUserInfoKey. How can I check if a key is defined at runtime? I found examples on how to check for classes and functions, but not for constants. ...

UITableViewCell has square corner with image

I have a grouped UITableView that contains several cells (just standard UITableViewCells), all of which are of UITableViewCellStyleSubtitle style. Bueno. However, when I insert images into them (using the provided imageView property), the corners on the left side become square. The code being used to assign the values into the cell is...

Animation to shrink view to top left corner

I would like to shrink my UIView to the top left corner. I am currently using a scale transform to achieve this, but the view is shrunk to the center. I have tried to change the layer's anchorpoint, but this results in the entire view changing position on screen . How should a transform be set up to achieve a shrink to the top left corne...

UITableView add cell Animation

Hi Guys, Can any one help me out with UITableView animating issue. By default we have animation for deleting cell and reordering cells in UITableView. Can we have animated adding cell, if so how to do it. I have checked out Three20, did not not get how twitter has done the table expand animation under MyProfile>ReTweets. Want to try...

Tracing user path on a MapView?

Hii Frnz, I am developing an app which computes the distance travelled by the person and shows a map view which draws a line showing the user path from initial position to final position. Now I am stuck as to how to trace a line on the user path...Should I try a custom annotations(or overlays) or is it possible to draw line on user pat...

How do I hide iAd banners when no ads are being served?

Anyone able to offer a little help on this? I just received feedback from Apple advising my app could not be accepted because it contained adbanners that were still visible when no ads were being served, trouble is I can't figure out quite what to do to prevent this problem. [QUOTE] We've completed the review of your application; ...

Show the number of unread items just like in the Mail app

I am making an iPhone Application which has a list of RSS Feeds, and I want to show a blue bubble on the left with the number of unread articles (one bubble per feed), just like in Mail app, as shown here: Does anyone know if this is possible with Cocoa Touch, or must I add a UILabel? If I must use a UILabel, then how do I make it r...

working with core data which maintains primary key and foreign key relations in iphone app

hello all , I am developing Iphone app that reads data from url and after parsing i should save that data for persistance.(Because of getting app in offline also...). I want to use core data for this. Such that first time only we will read the data from url and save into objct model, so from second time onwards we can fetch the data fro...

Two textviews switch from foreground to background and back

I have a view with two textviews in it. By touching on the first textview i resize it to "fullscreen" an it works fine, but touching ob the second textview the part where the first textview is is behind the first textview. Is there any possibility to set to change overlap properties ob the textviews? ...

UINavigationItem titleView position

I'm using UINavigationItem's titleView property to set a custom UILabel with my desired font size/color. Here's my code: self.headerLabel = [[UILabel alloc] initWithFrame:CGRectMake(0.0, 0.0, 400.0, 44.0)]; self.headerLabel.textAlignment = UITextAlignmentCenter; self.headerLabel.backgroundColor = [UIColor clearColor]; self.headerLabel.f...

How to add 2 ViewControllers to the same window

I am following Stanford's iPhone Development course in iTunes U and I'm having problem with one of their assignments (Paparazzi, if anyone is familiar). What I'm trying to do is basically to create this view as the first 'screen' upon application launch: And this is the code that I have in the app delegate: - (BOOL)application:(UIAp...

retaining a list of all local push notifications in iOS 4

As part of an app I'm writing, it keeps a list of reminders and uses local notifications to display them at the required time. What I would like to determine is a list of these notifications so that I don't have to recreate the list upon each edit or new notification. Is there any documentation or examples/tutorials that demonstrate th...

viewDidLoad & viewWillAppear conspiracy

I have a favorites plist file when I try to load it like this - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; NSString *path = [[NSBundle mainBundle] pathForResource:@"favorites" ofType:@"plist"]; NSMutableArray *array = [[NSMutableArray alloc] initWithContentsOfFile:path]; self.allFavorites = array; [array r...

iOS multiple image selection

Is it possible to write an app to behave like the photo picker does in the Photos app? Namely allowing users to select multiple images and greying out or putting a green tick on the selected ones? I've tried UIImagePickerController, but that appears to just dim the image when it's touched. ...