iphone

How do I model a selected entity instance from a set of possible instances in Core Data?

I have two Core Data entities, say Account and House. Each account can have a list of houses and a house can only be in one account, so that's a regular one-to-many relationship with an inverse. An account also has a "primary" property that indicates which of the many possible houses is primary or is nil if there are none. The identity ...

How to check if a string only contains alphanumeric characters in objective C?

I'm working on a small iphone project and i would need to check if the userName entered only contains alphanumerical characters? (A-Z, a-z, 0-9). How would i go about checking it? ...

SQLite record not correct on iPhone simulator

I have an SQLite db with 19 records in it. Of those records 18 have a "threatLevel" value of 1, and one of them has a "threatLevel" of 2. The field is set to default to 1. I recently changed the 19th record to "threatLevel" 2 for testing purposes. I used SQLite Manager (a Firefox extension) to add the value directly to the sqlite file...

Custom font in iPhone Development

Hi, I am developing an iPhone application which needs to show some font in language other than English like Malayalam or Arabic. Is it possible to do that? Please give me appropriate direction to do this. Thanks in advance. ...

iPhone - View for UIViewAnimationTransitionCurlUp

hello, I am an absolute beginner in iPhone development(consider this while rplyng please), I have this Navigation based application in which there is view called FirstView. In this I have a scrollview and imageview. I set Image of Image view on a button click. Then after the click I have this code imageView.image=image; imageTitle.tex...

How to hide and show the label inside a table?

I have 3 tables called radio, song, and artist controlled by favorite. Now I want to display different text for each table when there is nothing inside the table. But I want the text to be removed when there is something inside the table. I could display the text, by adding label into it. if ([mainDataCenter.favoriteArtistArray count] =...

UIImagePickerController weirdness ...

Hello, all ... UIImagePickerController is easy to use, but i'm all of a sudden finding it exasperating when I didn't find it so before. What's happening is that sometimes the imagePickerController:didFinishPickingImage:editingInfo delegate method does not seem to work -- the image will not show in the UIImageView even after the assignme...

UIImageOrientation problem

Hello All, How to save image in Landscape mode. Iam Picking image from camera in landscape mode then scaleAndRotateImage but it get strech code for scaleAndRotateImage is: int kMaxResolution = 420; CGImageRef imgRef = image.CGImage; CGFloat width = CGImageGetWidth(imgRef); CGFloat height = CGImageGetHeight(imgRef); CGAffine...

UIImageView not showing

I changed a .png that I was using for an UIIMageView that I added using InterfaceBuilder. Now, when I run the app in the simulator, the image does not show. I have tried removing the reference and re-adding and even creating a new image altogether and nothing seems to work. PLEASE HELP!!!!!!! ...

C# Solution to upload a file.

Can someone provide me with a way of uploading files, such as images or text files,from an iphone app to a web server. I have found many examples but all are in php. I'm using C# with ASP.NET and need to do a simple upload. Thanks in advance. I actually needed a solution for the iphone app. How to upload the file from the iphone to an ...

Bug in the NSDateFormatter when parsing time and date in shortstyle

NSDateFormatter *inputFormatter = [[NSDateFormatter alloc] init]; [inputFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss"]; NSDate *formatterDate = [inputFormatter dateFromString:@"2009-11-03T21:02:34-08:00"]; [inputFormatter release]; NSDateFormatter *outputFormatter = [[NSDateFormatter alloc] init]; [outputFormatter setDateFormat:@"HH:m...

How can I use MPTVOutWindow iPhone undocumented class?

Hi, I'm an iPhone developer, now I'm developing a game and I just found about the iPhone 2.2 being able to reproduce video on a TV Screen trhough MPTVOutWindow class. After googling I've found a lot of blogs with the News, however none of them give any information on the class, what should I do to implement the class in order to displa...

Animation : How to make UIbutton move from right to left when view is loaded?

Hi I have not done any animation stuff with iphone development so far. Can anybody help me how to make UIbutton move from right to left when view is loaded? I want to generate effect like that : when view is loaded, the button appears moving from right end to left & stops at its place. Is it possible? Any help regarding this animatio...

How can I show a sequence of buttons highlighting?

Similar to the Simon games of old, I want to show the user a button sequence & then have them repeat it back. The place I'm stuck is showing the first button highlighted for, say, 500ms, waiting 100ms, showing the second highlighted for 500ms, waiting another 100ms, showing the 3rd & so on. From other Stackoverflower'ers I've gotten to...

ipone app streaming video bandwidth check

Hi, I have an iphone app, which plays live streaming videos. I want to check the bandwidth of the users connection, depending on which i will assign low, medium or high streaming to Any idea on how to check the users bandwidth / internet connection speed? ...

COCOS2D:How to call a nib file from cocos menu and vice versa?

Hi Devs, I m developing a game where all the settings page, score page, help pages are in nib formace and the game is in cocos2d scene format (Gamescene.h and m file). So i need to call the game scene of from a nib file when "Start game" button is pressed from the nib. And when the game is over , i need to call the score .nib from the ...

iPhone + UITabBar

Hello, I have a UITabBar in my application with three tab bar items. At certain cases I want to show all three tab bar items and some cases I want to hide the 3rd tab bar item from the Tabbar. Please help me ...

how to Remove the default navigation bar button

i am using a pushviewcontroller for navigation and i am getting default back button on the navigation bar..... i am trying to hide that default button and make my navigation bar plain.....anybody know how to hide that default navigation button on left side of the screen ...

Why aren't my touch-handling methods being called for a UIView subclass?

Hi all, In my application I need to implement touchBegan for the custom View that has been created . I haved added the following method to my custom view class. - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { } - (void)touchesEnded:(NSSet *)to...

Iphone cocoa-touch animation suggestions

Hello Every One, I need a documents or blogs and so on.. I'm realy interesting the animating views, user interface elements on the cocoa-touch king of crash course and how to design them in the photoshop or like that. I found a few books about describing this subject. As i described the subject i realy need to crash information about t...