iphone-sdk-4.0

Layering UIViews so that bottom most layer can be seen

I have a UIView to which i add a background image. Then to that view i add a scroll view. To the scroll view i add some UIButtons. I would like to be able to set the scroll view to be transparent (still being able to see the UIButtons) so that i can see the background image underneath it, so that it shows between the buttons. I have t...

react on push-notifications directly

Is it possible to react directly on a push-notification without waiting for user-input? (I don't mind if i have to use a private framework) Is there any alternative to apples version of push-notification? Can I send polling packages to the iPhone and react to them in background? ...

AVMutableAudioMix and AVAssetExportSession (Help!!!)

Hi! I want to make fade in/out effect for export session. But it doesn't work. Please help me! Trim works perfect! But fade in/out doesn't :((( NSURL *assetURL = [song valueForProperty:MPMediaItemPropertyAssetURL]; AVURLAsset *songAsset = [AVURLAsset URLAssetWithURL:assetURL options:nil]; AVAssetExportSession *export...

App crashes when I pop a view from NavigationController using a UIButton

I'm pushing a simple view onto a NavigationController. The view loads fine, and when I use the built-in back button, it is properly popped. However, when I try and pop the view with my own UIButton within the view, I get a crash. This is the action run by my UIButton: -(IBAction)iAgreePressed { [[self navigationController] popViewCo...

In iOS 4.0+, can you read data inside the e-mails through a non e-mail app?

I am attempting to do an app for a class where the application views an e-mail, reads inside of it for a specified codework/phrase and if it sees that, it starts playing an alert tone and screen flashing. The application is for locating a lost iPod via e-mail. I know there are applications on the droid that allow you to do this in SMS an...

Sqlite Opening Error : Unable to open database

Hi, In my app, I use a calendar control to store the information date-wise. Calendar Control's Link : http://blog.webscale.co.in/?p=244 Problem : For example, the current selected month is October 2010. Now if I switch back to April 2010 and try to comeback to Ocober 2010 & access data from calendar that I stored in the month of Oct...

Front Camera Video Recording iPhone 4??

i am trying to record a video from front camera of iPhone 4 using AVFoundation Framework with the help of WWDC samples i got from iPhone developer program. But i still cant get it to work..the video does not get recorded or mayb saved in my iPhone library...here's the code i am trying to use...it would b really helpful if someone culd h...

Date issue with Georgian Calendar previous day date shown

I had some issue with date: I get the current date (2010-10-27) in NSDate,converting it to NSString ...it's k But again when I try to get the date from String i.e NSDate , I am always getting the day before date . i.e (2010-10-26) instead of getting (2010-10-27). Plz help me.....I tried alot for the same..with every possibilty Here is...

Is it possible to build an iphone app that lists available wifis and allows the user to connect one?

Hello experts! My question is as the title states. Is it possible or is that restricted to the settings app? I have tried searching for an answer in the docs but no luck. ...

"_glFlush", referenced from:-[GLLevelMeter _drawView] in GLLevelMeter.o

Hi to all, whenever I am running My code it is showing an error ...

UITabBarController + UinavigatinbarController in the middle of an application

Hello All, How can I add UITabBarController + UinavigatinbarController in the middle of an iphone application. I dont want tabbar and navigationbar in my first screen but my rest of the application require UITabBarController + UinavigatinbarController. How can I achive that ? What type of project do I need to create ? Is there any ex...

Rotating/moving objects on a UIView

I need to rotate and move objects on a UIView when the orientation changes. To that end I have the following in willRotateToInterfaceOrientation if (UIInterfaceOrientationIsLandscape(toInterfaceOrientation)) { [self repositionObjectAfterRotation:scrollView x:0 y:100 width:480 height:150]; [self repositionObjectAfterRotation:page...

NSMutableArray how to properly addObjects and release

Hi all! I am worried about than am I properly adding object and releasing them. What NSMutableArray actually contain - object's copy or just a pointer to them? What is the sequence in working with NSMutableArray? (alloc, init, work, release) How to retain and release it properly? NSMutableArray *listData = [[NSMutableArray alloc] init...

iOS Singleton Variables Not Keeping Their Values

So I'm still kind of new to Objective-C, and this was my first app that I'm now updating. The idea is this: The whole app is basically various lists of stuff. It asks the API for 15 posts, shows those with a Load More button. Click Load More, it loads 15 more, etc. The API that it loads these from has a token system with a timeout built ...

UIScrollView does not resize correctly

I have code to rotate and size a scrollview, such that when the iPhone is landscape the orientation is correct. This is what the view looks like before rotating: The scroll view is in yellow. This is what it looks like after: This is the log statement i put after setting the new frame for the scroll view, and you can see that it i...

Request for member in something not a structure or union.

Here is my code for using search bar in tableview. Its giving me the error: Request for member 'tableView' in something not a structure or union. (void)searchBar:(UISearchBar *)theSearchBar textDidChange:(NSString *)searchText { [copyListOfItems removeAllObjects]; if([searchText length] > 0) { searching = YES; letUserSelectRo...

Pop menus in iphone

Hi, I want to make application that when i click on button or menu it show transition to right side .Want to show pop up on selctingbutton or menu plz suggest me any tutorial,link,code........its very urgent ...

Automate Xcode Project Creation

Hello everyone, i am fairly new to xcode, i have to create many same identical projects in xcode. Meaning i have already set up my template with files needed in and related frameworks. So instead of everytime creating a new project and choose the template , is it possible to do it by command line ie i run an apple script what i heard so...

Why does status bar rotation happen "behind" my modal UIImagePickerController?

In my application I have a UIViewController that opens a UIImagePickerController using presentModalViewController. The image picker appears to disallow orientations other than UIDeviceOrientationPortrait, which is fine. However, it appears that if I rotate the device to landscape, the status bar rotates despite the fact that the UIIm...

How to embed a Youtube video and Podcasts into an iphone app.

I have an app which requires the Youtube videos and Audio Podcasts to be played inside my app and not giving out control to youtube player or safari. What is the method that can be used to embed Youtube videos and Audio Podcasts into my iphone app? Any tutorials about the above issue are most desirable as I am new into this. Please gi...