iphone

Accessing Videos in library using AssestsLibrary framework iPhone??

i am trying to access videos in iPhone library using AssetsLibrary Framework with the help of following code...but when i run the application the code is not working...the array assets is still empty?? what am i doing wrong?? btw my iPhone is a 3G upgraded to iPhone 4.1.(but assets framework is not giving any error) NSMutableArray *ass...

updating textfield in tablecell

NSString *cel=@"text"; NSIndexPath *a = [NSIndexPath indexPathForRow:1 inSection:1]; CustomCell *c = (CustomCell *)[tableView cellForRowAtIndexPath:a]; c.yes.text = cel; I am using these line for updating the UITextfield placed on the tablecell ..... but it giving me some error like this RootViewController.m:110: error:...

how to call add a view from NSObject class

Hi, I am working on an app where i am doing some code in a class which is derived from NSObject and in this class i want to call another class which is a UIView type class and add it above current view or if possible over window. Can someone suggest me how will i do it as i cannot call [self.view addsubview:view] from a NSObject type...

Accessing voicemail in iPhone

Is there any way to access the voicemail from the SDK. As I know this cannot be done. At least in the new SDK have they given any control over it? ...

sqlite3_step return code 21 during loadView

Experimenting with sqlite, I want to init a list view with data from the DB. My source looks like this: -(void) initTheList { sqlite3 *db; int rows = 0; const char* dbFilePathUTF8 = [searchTermDBLocation UTF8String]; int dbrc = sqlite3_open( dbFilePathUTF8, &db ); // count if (dbrc) { NSLog( @"Could not open the DB" ); } else { ...

Reload tableview iphone developer

Hi! I have a feed reader that read automatically the homepage of my website! But when I change the feed URL and reload data the cell isn't reloaaded! Infact I must scroll the cell view (infact with this action is called the didselectrowatindex method) to reload data in the cell with the new ones. I tried [tableview reload]; without any r...

How to use fopen from a C library while Using iPhone SDK...

Hello, I apologize in advance if this has been addressed, but I have not found a specific answer as of yet. First, I am trying to use a C library in an iPhone/Cocoa touch app. It compiles fine as a plain C project and as a plain Foundation project (using X-code). My problems is this: The library uses a dictionary file which is called d...

shrinking text in UILabel

hi all, i hv a label of width 100 px,but dynamically i am filling that label. so the text's length is not fixed, so it can be anything, 10 or 30. the problem i am facing is, when the text length exceeds, the font size of the text in UIlabel gets smaller and complete text comes up in uilabel. i was trying if, the text length gets excee...

Providing editable and non-editable fields on the iPhone

I would like to present information to the user of my app in a non-editable way but allow editing after a button press (of the edit button). Is there any way of easily creating this transition from non-editable to editable? I have considered using UILabels for the non-editable fields and programatically removing them and showing UITextF...

NSOperation synchronization problem

Hi All, I am struggling to find a way to synchronize operation on IPhone app. I have three main NSOperation. NSInvocationOperation *showSpinner = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(spinnerOn:) object:YES]; NSInvocationOperation *reloadDatasource = [[NSInvocationOperation alloc] initWithTarget:...

re-playing audio and animation if the view is changed

I have a view that plays an animation and an audio clip. if the user leaves the view and then returns the audio replays from the point where they left the view. I simply want the audio and the animation to start over as if it was their first time coming to the view. I thought I had solved it with the following code: -(void)viewWillDis...

Multiple Tags on a UIImageView ?

Hi all, Is it possible to have more than one tag associated with a UIImageView ? Cheers, Martin ...

About uitextfield on table cell

I am making a app in this app i am using uitextfield on table cell. I have made custom tablecell and declared a label and a textfield and I can see textfield on every tablecell but now i want that if I edit a taxtfield then changes will show all the textfield ...... If still there is something which is not clear then Please.... ...

How to save/retrieve UIButton state ?

Hi all.. and this is my first question here ! I use UIButton with UISwitch functionality and i want to save/retrieve state of UIButton. Pls HELP! Resolved! Thanks Kalle and aBitObvious ! code i use : .h @interface RetinaViewController : UIViewController { IBOutlet UIButton *mybutton; } -(IBAction) toggleUIButtonImage:(id)send...

"UIStatusBarStyleBlackTranslucent is not available on this device. Ignoring UIStatusBarStyle key in Info.plist." - What to do?

I have a universal binary app for iPhone / iPad. In console I always get this log: UIStatusBarStyleBlackTranslucent is not available on this device. Ignoring UIStatusBarStyle key in Info.plist. Must I be worried about anything now? There's just one info.plist for both, right? How could I stop this log to happen? I guess it spam...

UIImage resize, crop and rotate with frame

I'm searching for library or just code snippet to provide function like resize, crop with frame and rotate image after user pick image from image picker. Something like on this video: http://www.youtube.com/watch?v=Gb6xncXg1PY (0:55). Maybe someone has the same issue? ...

iPhone/iPad: Labels Displayed in wrong Font, i use the system fonts!

Hello, since i installed newer SDK's the Fonts i've choosen for some Labels are not shown in IB, only in Edit Mode. There ist always a substitute font showing. I know, that I can't use any Font, so i've chosen an iPad System Font "Chalkduster". The Fonts is installed on my Mac. I also installed the SDK again (3.2.4) Is there any *.plis...

How to save and retry reporting GKAchievement's after network failure?

Apple states that if you want to report a GKAchievement but you get a network error, the best way to handle this is to save the GKAchievement (possibly adding it to an array), then periodically attempt to report the achievement. What is the best place to save the achievements? Would NSUserDefaults suffice, or would a property list be a ...

Three20 : how to pass a class of objects between 2 views

Hi, I have a TTableView. The items in this table a mapped to an url, so that when I click on an item, another view appear with informations about this item. All these informations are attributes of a class. So, how can I build my TTableTextItem URL in order to transmit the class containing informations to the view responsible for the di...

Is "currentPlaybackTime" property of MPMoviePlayerController a private API

hello guys, I am not sure about this private API thing. Is the property "currentPlaybackTime", which is in the MPMediaPlayback Protocol of the MPMoviePlayerController a private API? I am asking, because this property is working fine but it is not listed in the MPMoviePlayerController Reference. Is it then a private one? By the way: i...