iphone

Image Masking Problem

Hi I am doing image masking. First I was using C*GImageMaskCreate()* function for masking but now I am using your solution which you had posted for masking. My problem is it works fine on simulator but on device it is not transparent and it gives rectangle of mask image at background. The following is my code. Now tell me what I have to...

iPhone SDK background thread image loading problem

I have created a grid view that displays six "cells" of content. In each cell, an image is loaded from the web. There are a multiple pages of this grid (the user moves through them by swiping up / down to see the next set of cells). Each cell has its own view controller. When these view controllers load, they use an ImageLoader class th...

updating plist file on launch of application

Hi. I have an app that reads in a plist file from the resources folder. I have looked for about 5 hours for a solution to hosting my plist file on my freewebs acount and have the application update the plist file on launch. Can anyone help me please. I will post my code if you ask. I am just not sure what you need to see now. ...

Twitter api for iPhone OS4

Hi, It looks like the twitter api refused to work for iPhone OS4 :( (Twitter+OAuth http://github.com/bengottlieb/Twitter-OAuth-iPhone). When I building the project to which I just add the Twitter+OAuth I see the following: It's really really important for me! Any help will be greatly appreciated! Many thanks in advance!!!!!!! ...

Problem in displaying custom UITableViewCell

Hi All, I have a tableview displaying data using a custom UITableViewCell(say cell1). On touch of a row, I change the custom cell to another custom UITableViewCell(say cell2). Also I increase the size of row of the selected cell to accomodate, more items of cell2. My problem is that the approach works fine when the number of rows in ta...

How to set first tab bar selected programmatically in iphone

I have UITabBar in view which have 5 tab. I am using didSelectItem delegate to open different view i.e. I am NOT using TabBarController. My problem is on view load I need first tab get selected by default. Is there any property in TabBar which we can set to make it selected. Thanks ...

Add UIBarButtonItem in interface builder, how to?

I have a navigation based application that have a uinavigataioncontroller containing uitableviewcontrollers. I want to add buttons to the UINavigationbar of the uinavigataioncontroller, usually I write code to add these buttons, something like this: UIBarButtonItem *saveButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBar...

How to create a Facebook-App style notifications custom table?

I want to add a custom table to my iPhone app, that should look and work like the one used in the facebook app showing the notifications. It should contain rows with links in it. The text should be black, while the tap-able parts should appear blue. As a already figured out, labels only have one font, color and so on and you can't mix s...

Setting default language for iPhone app on first run

I'm developing an application that should support two languages: English and French. However because English translation is not done yet we want to deploy it in French only and later on add English translation later on. The problem is that I don't want to strip English language out of my code since some parts are already done, there are...

Generate Random Number from fix Set of numbers in iphone

Suppose I have One set of numbers i.e {1, 6, 3, 5, 7, 9} I want to Generate Random number from this set of number only i.e. a Generated number should be random and should be from these number({1, 6, 3, 5, 7, 9}) only. standard C/C++ function will also do... ...

Should I use interface builder or not?

I'd like to know more about the pros and cons of using interface builder when developing iPhone/iPad apps. I've written a fairly complex and customized app that's on the app store right now, but all of the interfaces are hand coded as they are fairly complex. I've customised the navigation and tab bars with backgrounds, table view cells...

UIButton Much needed IBOutlet ?

I created a ViewController and it has 6 UIButtons.Each one has different tasks . Its work fine. When i am creating one button (sample) IBOutlet UIButton *loginnextbtn; @property(nonatomic,retain) UIButton *loginnextbtn; @synthesize loginnextbtn; [loginnextbtn release]; -(IBAction)LoginNextBtnPressed:(id)sender; then i delete these ...

does an iphone UDID have an integrated checksum

Do apple's iPhone / iPad UDID's contain a checksum ? I'm asking because I'm wondering if it would be possible to add non-existant or "wrong" UDID's to the Devices list at the developer portal. thanks for your help sam ...

iPhone app. Creating a custom UIView that contains UITextField and UIButton.

Hi all. I am new to iPhone programming. And I have an issue. I need to create a custom user control that I will add to my UIScrollView dinamically. The control has an UITextField and an UIButton. See the code below: #import <UIKit/UIKit.h> @interface FieldWithValueControl : UIView { UITextField *txtTagName; UIButton *addButton; ...

NSURLConnection and XCode "Build and Analyze"

I have been following the documentation for using NSURLConnection and am using delegates for managing the connection (overriding among other methods connection:didFailWithError: and connectionDidFinishLoading:). The memory allocated for the NSURLConnection object is released in those delegate methods. My problem is that running "Build/B...

Can the UIBarButtonSystemItemDone be used outside the scope of a UINavigationItem?

Hi I would like to add a UIBarButton of style UIBarButtonSystemItemDone to a UIView, instead of setting it as a property of a UINavigationItem. I present a modalViewController that has a top-bar view that looks like a navigationBar, I need for the user to have a way to dismiss the modalViewController. It would be practical to add a, we...

Why must I make a protocol like this?

@protocol SomeDelegate<NSObject> //stuff... @end Why the <NSObject> part? Couldn't I just do @protocol SomeDelegate //stuff... @end ? ...

Core Data @sum aggregate

I am getting an exception when I try to get @sum on a column in iPhone Core-Data application. My two models are following - Task model: @interface Task : NSManagedObject { } @property (nonatomic, retain) NSString * taskName; @property (nonatomic, retain) NSSet* completion; @end @interface Task (CoreDataGeneratedAccessors) - (void...

EXC_BAD_ACCESS NSUrlConnection

Hi all, i got an EXC_BAD_ACCESS when i perform the last line of the function (webData). -(void)requestSoap{ NSString *requestUrl = @"http://www.website.com/webservice.php"; NSString *soapMessage = @"the soap message"; //website and soapmessage are valid in original code. NSError **error; NSURLResponse *response; //Convert paramete...

mkmapview cpu usage on iphone 3G

Hello all, I have some troubles with iphone 3G and Mkmapview. After a certain random time, my application freeze. When I launch with performances tool, I can see that the application a lot of time to retrieve map tiles in cache. 19.6 7006 Foundation +[NSURLConnection(NSURLConnectionReallyInternal) 18.5 6613 GMM GMM::TileCachePrivate::...