iphone

Why is Quartz 2D text flip transform required on iPhone

From the Apple docs: In iOS, you must apply a flip transform to the current graphics context in order for the text to be oriented as shown in Figure 17-1. A flip transform involves inverting the y-axis and translating the origin point to the bottom of the screen. Listing 17-2 shows you how to apply such transformations in the drawRect: ...

iPhone SDK: custom buttons in TableView

I'm using custom buttons in Table view and it works good for me: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UIImage *detailsButtonImage; UIButton *detailsButton; NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCell...

Animating text on iOS

Hi, I'm writing an iOS app which needs to generate and animate individual text characters dynamically. The actual text being displayed will be dynamic and I want to use layers and masks to animate individual characters. Does anyone have any experience of what is the best and/or easiest way to do this? I've been looking at CoreGraphics a...

Playing multimedia content in sequence

Hi I have an NSArray containing many 'multimedia action' as I like to call them, objects that encapsulate some multimedia content like movies and photos. I'd like to 'play' them in sequence waiting each one finished before calling the other. What is the best way to manage the duration of each operation before calling the next one? (for ...

iOS - dual list layout

I am developing an iOS application and am having some issues deciding how to approach a problem. I am using two UITableViewControllers to display different views of the same data. One is a master list, and the other only contains items which are marked as "favourite". Also the items are variable height, so I am using "heightForRowAtInde...

Iphone masking colors: Remove background color

Hi, I have a series of avatars; each has a hot pink background of RGB:255,0,255. Rather than going through every avatar, and manually removing the pink background; is there a way to make Objective C remove the background (masking it) for me? An example of an avatar follows: One thing I am concerned about is that the masking is done...

iPhone OS4 orientation problem

Since I've upgraded my iPhone to OS4 I noticed a buggy behavior in my web-app: When rotating to landscape and then back to portrait the view remains with the landscape zoom, causing only part of the page to be visible. The problem appears only when viewing the application in full-screen mode. Try adding the sample web-app I made from t...

Simplifying UIImagePickerController

I'm implementing Augmented Reality in my app. Is there anyway to just have a Cancel button, since taking pictures is out of the question? I know there's a similar question, but that is just overdoing it for me. I only wish to have the Cancel button, the rest can be hidden. Thanks. ...

Verify Password Error

NSString *NumberToSave = Number.text; NSString *PassToSave = Password.text; NSString *PassVerify = VerifyPassword.text; // Save Settings NSUserDefaults *standardUserDefaults = [NSUserDefaults standardUserDefaults]; NSString *tmpNum = [standardUserDefaults stringForKey:@"Number"]; if (tmpNum) { }else{ ...

MKMapView with additional UI elements

I want to create a mapping application for iOS that will show a map (MKMapView) and some UI elements (UIButton,...) on top of the map. Is it a good idea to add the additional UI elements as subviews of the MKMapView or should I create a parent UIView that contains the map and other elements at the same level? I created in IB a MKMapVie...

Shared NSMutableString for local html filename iphone

I am relatively new to Objective C/iPhone Development. I am developing a simple app with two views using a Navigation controller. The first view contains several buttons a and the second view contains a uiwebview. The idea is that when a button is pressed it switches to the second view and the web view loads a local html file. Which h...

Insert date/time in UITextView when user hits return

Im trying to Insert the current date/time whenever the users hits the return key or starts typing on a UITextView in Xcode but not quite sure where to start. I know this method is for when clicking into the TextView but doesn't seem to work: - (void)textViewDidBeginEditing:(UITextView *)textView { self.txtDetail.text = [self.txtDet...

Complex Core Data predicate with to-many relation

I have 3 entities. Folder, Feed & FeedItem I need to fetch Folders which have feeds and feeds which have unread FeedItems NSPredicate * predicate = [NSPredicate predicateWithFormat:@" feeds.@count > 0 AND feeds.feedItems.unread == 0 "]; I get this error 'NSInvalidArgumentException', reason: 'to-many key not allowed here' How do I c...

Create Map on Iphone

I am wondering how to create a click able map on Iphone similar to this one http://www.flashimap.com/clickable-map/UNITED_STATES/ I need to create my own map image with my own coloring schema. ...

UITableView replicating first NSArray Item for all rows...

Hi all, Got a weird problem with my NSMutableArray and UITableView. It's got 4 items in the array, the table shows 4 rows but each rows only contains the first array item, rather than row 1 showing array item 1, row 2 showing item 2, etc... Here's my code: My Mutable Array //in .h NSMutableArray *tableRows; //in .m tableRows = [...

CGPath draw a loader

Hi every one ! I juste watch this effect : I would like to reproduce it. Is it simply a CGPath animation? Have you got some indications so implement this beautiful loader view ? Thanks for your tips ;) ...

how do i use a UIPageControl???

I am making an app where 10 images can be scrolled through using a page control. The problem is that I have absolutely no idea how to use a page control. Any help at all is appreciated. ...

iphone programming, loading plist data, access it

Hi, i have a plist in the following form: Root (array)---> item 1 (dictionary) ----> Sch (string) ---> Name (string) ----> price (number) ----> item 2 (dictionary)----> .....same as item 1 how can i access each row (item1 to ...) and the its child (Sch...

iPhone screen capture for a view

On iphone, is it possible to "screen capture" an UIView and all its subview? If it is possible, how? ...

If I override a class method, is there a way I can call the original method (the one that was overridden)?

In Objective-C, if I override a class method using a category, is there a way I can call the original method (the one that was overridden)? ...