iphone

Gdata youtube api for objective-c - getting videos playable in iPhone

Hi I am using the gdata library in my iPhone app to search for some youtube videos. Now most of the videos come up fine but some videos are not compatible for playback with the iPhone. I am using a webview to embed the video. In case of videos which cannot be played on the iPhone, they show up in the webview without a preview and just ...

iPhone SDK - Sandbox - From Library folder in Simulator to Library folder in final device.

Hi. I've used NSMutableArray writeToFile for created a file(levels.txt) which contains the levels state on my game (level locked, unlocked or level done) Level0: Done Level1: Unlocked Level2: Locked ... Level8: Unlocked ... The resulting file(XML) is in /Users//Library/Application Support/iPhone Simulator/4.0/Applications//Library/le...

UIScrollView with multiple pages visible or smaller page sizes

I'm trying to make a paging UIScrollView display multiple pages at the same time, in effect, making the page size smaller than the scrollview's bounds. I've been googling for hours, but nobody seems to have a good solution. I'm able to get the right effect visually by sizing the scrollview to the size I want one page to be, turning off...

can we make HTTPClient in iphone,HOW

sorry i am a new comer,i just want to know how we can make HTTP Client in iPhone,like java we make HTTPClient like httpclient = new DefaultHttpClient(); if(Settingdb.getLocation() != null && Settingdb.getLocation().length() httppost = new HttpPost(Settingdb.getLocation()); i need this code in iPhone (obje...

#ifdef macros for versions controlling

Hi!, I use macros to differ the versions but I can't force it to work properly. I used: #ifdef _IPHONE_4_0 [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade]; #else [[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES]; #endif and #if __IPHONE_OS_VERSION_MAX_ALL...

Getting 10 friends from friend-list problem in fbconnect problem

i am trying to fetch 10 friends list using fbconnect my query is like this NSString* fql = [NSString stringWithFormat:@"select uid from user where uid == %lld LIMIT 1,10", _session.uid]; NSDictionary* params = [NSDictionary dictionaryWithObject:fql forKey:@"query"]; [FBRequest requestWithDelegate:self] call:@"facebook.friends.get" pa...

pulling info from a plist

I'm able to pull information from a plist using: nameTextField.text = [recipe objectForKey:NAME_KEY]; ingredientsText.text = [ingredients objectForKey:NAME_KEY]; I also have images in the plist [the names of the images, not the image data] does anyone know how i would display an image in a similar manner? thanks in advance. ...

my colour bitmap is only black and white in drawRect (iPhone)

I want to preserve previous drawing in drawRect (the system clears it down each time) and it seems that the way to go is to use a bitmap context and sure enough, this works except that now my colour is gone leaving only black and white instead. Here is my "static" context -(id)initWithCoder:(NSCoder *)aDecoder { ... CGColorSpaceRef co...

Xcode 4: How do you view the console?

I can't seem to find a way to have the console run (to show NSLog comments) in XCode 4. The normal method for the previous version of XCode does not work. Does anyone have an idea of how to accomplish this? ...

How to use finalize method in Objective-c?

How to call finalize method in Obj-c for garbage collection? ...

UIDelayedAction leaks

Hi, i'm creating a pdf reader with all the tipical functionalities: double tap zoom, zoom with the two fingers multiple touch, etc ... I'm using the Instrument tool of xCode to detect memory leaks of my program, and i have a strange entry into my leaked blocks called UIDelayedAction and its size is 48 bytes. This leak appear only if i do...

is there any methods like cookies in iphone

hi i am new to iphone development. i need to store a buttontag value temporarily and use it in another view is there any method to do this pls help me ...

What is active GPS effect on mobile devices battery life?

How much does active GPS drain the battery? Without the overhead of the gps navigator software. s ay I want to sample the gps every 2 minutes and save it to a file. how much battery power will that cost me? Will I get 10% shorter life? 20%? ..? ...

unable to open database

I am using below code for inserting data in the database. and i am inserting aprox 15000 records but after 245 records it throws the error "Unable to open database" +(void)addGeoRegions:(const char *)query geoId:(int)geoId geoFatherId:(int)geoFatherId geoName:(NSString *)geoName geoTypeRegionId:(NSString *)geoTypeRegionId geoZo...

What is the Mac equivalent of AVAudioPlayer?

Hi, I am porting an iPhone app to Mac. On iPhone I use AVAudioPlayer for playing sounds, but it doesn't exist on Mac. What would be the Mac equivalent for playing audio (hopefully as simple as AVAudioPlayer so I can port my app easily)? Additionally, are there any open source libraries / samples / wrappers available for playing music ...

Deleting an app in iTunes Connect

Apple has introduced the possibility of deleting an app. Quoting the iTunes Connect guide: If you have created an app in iTunes Connect that you no longer need to see or manage, you can delete it from your iTunes Connect view. Deleting your app will not allow you to re-use your SKU or App Name and you will not be able to ...

Insert NSDictionary

hi, I have a question. If i have a NSArray i can put into a NSDictionary? If i can, how can do these? Thanks ...

How to disable interaction for on component in picker view?

I need to be make the last of four components in my picker view be un affected by user interaction. I have tried putting a clear UIView in front of just that component and setting userInteractionEnabled to NO but it doesn't seem to work. ...

how to display lable under image

hi i am new to iPhone. what i need is display the name under selected image at imageview from grid but it displayed under gridview pls help me i tried this from one weak onwards plsssss plss help me this is my code // // CustomImagePicker.h // CustomImagePicker // // Created by Ray Wenderlich on 1/27/10. // Copyright 2010 Ray Wen...

UIImagePickerController Camera Source causing the app to crash

I am getting a "Received memory warning. Level = 1" when I use UIImagePickerControllerSourceTypeCamera. If i access the camera immediately after entering the application, I get "Received memory warning. Level=1" but when i select the camera option after accessing all the other functionality in the application, the app crashes while th...