iphone

How to set the tableview's top using contentinset property while being at the bottom of the table

Hi all, I'm having a tableview with 20 rows and 250 as their rowheight. While I'm at the bottom of the tableview, I want to shift the tableview upwards by 65px. I tried doing self.tableView.contentInset = UIEdgeInsetsMake(-65.0f, 0.0f, 0.0f, 0.0f); Also self.tableView.contentInset = UIEdgeInsetsMake((4633.0f - 65.0f), 0.0f, 0.0f, 0.0...

How to call itunes from my iphone app with search for a known CD.

here is my code: -(IBAction)itunesBuy:(id)sender{ // NSString *urlString = [[NSString alloc] initWithFormat:@"http://itunes.com/%@/%@", self.artistTerm,self.titleTerm]; NSString *urlString = [[NSString alloc] initWithFormat:@"http://phobos.apple.com/WebObjects/MZSearch.woa/wa/advancedSearchResults?albumTerm=%@", self.titleTerm];...

NSString: fastes way of splitting

Hey, my question is a performance question. I need to split a huge NSString into coordinates. The string has this format: @"coordx,coordy coordx,coordy coordx,coordy (...)" My method to parse this is: -(NSMutableArray*) parsePath:(NSString*) pathString { // first split between the coordinates NSArray* path = [pathString com...

image is not getting loaded in view.

I have created 2 views named "FirstView" and "SecondView".SecondView's nib file has an UIImage view object as its IBOtlet.Now I am getting an UIImage object from some FirstViewController's method.Now I am setting the SecondViewController's imageView property with that image and then I am pushing my SecondView Controller's object in Navig...

Memory Troubles with UIImagePicker

I'm building an app that has several different sections to it, all of which are pretty image-heavy. It ties in with my client's website and they're a "high-design" type outfit. One piece of the app is images uploaded from the camera or the library, and a tableview that shows a grid of thumbnails. Pretty reliably, when I'm dealing with t...

iPhone facebook connect FQL Query to get Profile URL.

Hai. I am using Face book Connect FQL Queries to extract my profile photo url that is src_big,src_small URL. But i am always getting the empty array in below delegate (void)request:(FBRequest*)request didLoad:(id)result My FQL query is. NSString* fql = [NSString stringWithFormat:@"SELECT src_big,src_small FROM photo WHERE pid IN...

Create slideshow with photos from photoalbum on iPad

Hi, I want to create a little Slideshow App for iPad with images from iPads photoalbum. Is there a way to get all photos of photoalbum in an array or dictionary? Does someone has samplecode? Thanks for help!! ...

Making a grid on iPhone using Opengl

I'm trying to make a grid similar to what you would see in these geo games(geoDefense/geometry wars). I'm wanting to apply separate transformation matrixes to each to create different effects. So, it makes since to me that I need to draw each square separately to that I can apply a different transformation to each one. The problem I'm ...

Determining the magnitude of a certain frequency on the iPhone

I'm wondering what's the easiest/best way to determine the magnitude of a given frequency in a sound. It's my understanding that a FFT function will return the magnitudes of all frequencies in a signal. I'm wondering if there is any shortcut I could use if I'm only concerned about a specific frequency. I'll be using the iPhone mic to r...

Why am I getting a EXC_BAD_ACCESS in a NSTimer selector?

I've got quite a weird problem. To make it short, i'll write some pseudo-code: init: create a dictionary and insert n elements. create a "repeat timer" and add it to the currentRunLoop using the timerRefresh selector. timerRefresh: using a list of keys, find the items in the dictionary if the item exists -> call a f...

iPhone: Use a view as a transparent overlay with closing button

I've got a map with three bar buttons for different markers to show up in the map. If I click on a bar button, the specific markers are shown in the map, which already works great. Now I would like to show a transparent overlay (popup window) with the description of the markers after I clicked on a bar button with a button to close the...

UIAccelerometer reference

Hi all, Can anybody suggest to me some good applications that make use of UIAccelerometer Class and some references too ? ...

display number on iphone icon

Hi Guys I want to display numbers on icon of iphone application Please see reference file. http://c.upanh.com/upload/7/291/VK0.11503211_1_1.jpg how can I do? Thank you! ...

FaceBook FQL issue while extracting album name in Iphone.

Hai Guys, I have 3 albums in my Face Book account. 1.profile 2.NaturePhoto 3.Profile Pictures when i use below FQL Query the "request:didLoad:" delegate return the empty array. NSString* fql =[NSString stringWithFormat:@"SELECT cover_pid,name FROM album WHERE owner == %lld", session.uid]; NSDictionary* params = [NSDictionary dicti...

Best way to initialise / clear a string variable cocoa

I have a routine that parses text via a loop. At the end of each record I need to clear my string variables but I read that someString = @"" actually just points to a new string & causes a memory leak. What is the best way to handle this? Should I rather use mutable string vars and use setString:@"" between iterations? ...

iUI add margin to the content

I'm using the iUI Framework. How can I add a little margin to the current selected div? Take a look at the screenshot attachment. This is the CSS file The main div has a CSS attribute selected="true"! ...

How can I create a single HTTP Get request for iPhone?

Hi guys! First of all, sorry for my posibly bad english... I got a surely big stupid question... In my enterprise have an automatic door system, that is opened with a HTTP GET request to a file. Example: http://ipaddress/rc.cgi?o=1,50 Where the o=number indicates the amount of seconds that the automatic door will run. The is no need...

How to separate model and view with Core Data?

I have a subclass of UIView which draws itself based on data held in a corresponding model class, which is a subclass of NSManagedObject. The problem is, some fields in the data model (e.g. the position of the view) are already held in the view (i.e. the frame property in this case). I then have a data duplication/synchronization probl...

Error with custom Class definition in protocol

I'm trying to set up a custom delegate protocol and am getting a strange error that I don't understand. I wonder if someone could point out what I'm doing wrong here (I'm still new to Ob-C and protocol use)... The situation is that I've built my own URLLoader class to manage loading and parsing data from the internet. I'm now trying to ...

Adding a navigation bar to a web view in a tab bar app

I've built the tab bar application in IB, with three tabs. The third tab happily displays a UIWebview where you can browse. The only thing missing is a back button, as not all web pages supply such a link. I need a navigation bar hooked up properly to the correct classes. I'm still a bit unsure about exactly how the hierarchy should loo...