Need to store the tag from a clicked button:
- (IBAction)buttonClicked:(id)sender {
UIButton *button = (UIButton *)sender;
self.selectedImage = [_images objectAtIndex:button.tag];
}
Works OK.
- (IBAction)buttonClicked:(id)sender {
UIButton *button = (UIButton *)sender;
self.selectedImage = [_images objectAtIndex:butto...
i have a webservice and implementing that ,but when i get the array from this weservice its showing characters like this line brake in some keys.
I am trying to replace that with stringbyreplacing occurance of string but nothing happens.
Could anyone help me for this to replace this type of characters,show that when u want to sho...
hi all.
In my application user input some text in searchbar and application genrate RSS feed agiant this text when done button is pressed.
I want that the same action is performed when the user click on search button of keyboard.
Any Idea.
...
I want to make a Wikipedia Reader for the iPhone. What's the best approach?
I've already made a few thought about that. Loading the content of the Wikipedia site is quite easy using the Wikipedia API.But the difficulty is how to display the content in a nice way. The content is marked up with wikipedia tags, not html. My idea is to pars...
Hi all,
Is it possible to programmatically close all running applications of IPhone with my application ?
any suggestion will be great help !!!
Thanks...
Best Regards
...
I'm using Core Data to cache a decent amount of information, and I have a To-Many relationship set up among my managed objects. Naturally I use an NSFetchRequest to fetch an array of the singular side of that relationship. However, I populate a UITableView using the the "many" side of the relationship, and I'd like it to be sorted alphab...
Update: problem magically disappeared, see comment
I have a function which works fine on an iPhone 3G, iPhone 3Gs and simulator but crashes on an iPod touch 2nd generation.
- (id) initWithDelegate:(id) delegate
data:(NSData *) data
finishSelector:(SEL)finishSelector{
if(self = [super init]){
_delegate = dele...
I'm studying the Low-Level File Management Programming Topics from Apple. In the NSFileHandle section, they say:
The scope of NSFileHandle is not
limited to files. It provides the only
Foundation object that can read and
write to communications channels such
as those implemented by sockets,
pipes, and devices.
That sounds...
Hi,
I'm having 5 view controllers in my navigation based application, I need to support both landscape/Portrait mode in only a one view, following items displaying in the view
Navigationbar
Tool bar with two buttons
UIImageView in center.
UILabe below the navigaton bar.
Can any one help me how to support the orientation change to only ...
How can I programmatically get the number of the incoming call from Background application ?
...
For me it sounds like the same thing. Updating a file implies to write to the file. Writing to a file is also an update for me. But I guess there's a subtle difference ;-)
Does anyone know?
...
When I look at the NSFileHandle API docs, I see there are a lot of networking methods talking about sockets and stuff like that...
At the top, they say:
NSFileHandle objects provide an
object-oriented wrapper for accessing
open files or communications channels.
What's an "communication channel" here? Are there some practical e...
How does one use an already existing object from another class?
e.g. Have a object of Class1 and want to set its variables from Class2.
What does one import? Is it just necessary to import the Class1, will this make the object available to the class that imported?
In a class e.g. Main Class1 is created and presented
- (IBAction) ope...
What should i do?
I have some 512x512 png. I compressed them to PVR (which results terrible quality), and I'm preparing to compress the PNGs with pngcrush tool. The PVRs have about 2x-x larger filesize than the PNGs, maybe I can experiment with JPG files.
Are the images stored in a compressed state in memory? Or compression counts only ...
I would like to add a Welcome view to my app which describes the instructions etc.
I would like this to appear only once when the app is first launched... then with subsequent launches go to my app's main view... which is a navigation controller.
What is the best way to track launches/ implement this idea?
Thanks.
...
i'm clicking on a row in a table and going to a new view, in the viewdidload i'm taking the nav.title and putting it in a url to send to a php page. However the url is sending before the nav.title is initialised, so i'm receiving null back from php. How do i make sure the nav.title is initialised before viewdidload, or can someone think ...
Hi guys,
I want to put many little audio snippets together to a new one. This should happen randomly - therefore this new big audio file will be unique.
For this reason I need a procedure or a class in the framework which brings me in the ability to perform this task.
I found the classes AVAssetTrack, AVCompostionTrack, AVMutableComp...
Or I have to glDeleteTextures, glDeleteTextures one by one them?
Or is there some kind of glDeleteAllTextures like function?
...
Hi
I am new to iphone development.
I want to obtain string from url path
For example,
the relative path: 90-000000-General_Motors
i want to extract: General Motors
if path is 90-000000-General_Motors/5.jpg
i want to extract: 5
How can i acheive using simple coding
...
Hi at all, I have a little question, I have a simple app that read a database and display some data, all the app work perfectly but when I change my database from mac and I rebuild&go the database is the old database, not the new. For have the new I have to delete app from simulator (or itouch) and re-build...Where is the mistake?Can you...