Saturday, November 30, 2013

Hello World in IB novice connection problems ...

My brother novice Iphone development,
After creating Window.xib, run right, but one connected with Window.h control lines, hollow point later become solid, and then run on the following problems.

2012-07-25 11:49:36.032 FirstWin [1896: f803] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue: forUndefinedKey:]: this class is not key value coding-compliant for the key btnPress. '
*** First throw call stack:
(0x13c7022 0x1558cd6 0x13c6ee1 0x9bf022 0x930f6b 0x930edb 0x94bd50 0x23371a 0x13c8dea 0x13327f1 0x23226e 0x233eb7 0x10ce1 0x10ff8 0x1017f 0x1f183 0x1fc38 0x13634 0x12b1ef5 0x139b195 0x12ffff2 0x12fe8da 0x12fdd84 0x12fdc9b 0xfc65 0x11626 0x1ecd 0x1e35)
terminate called throwing an exception (lldb)

I hope predecessors pointing, provide solutions, Xianxie!


Reply:
You raised this issue to estimate nobody answers!
What you do not move your connections are talking about!
Reply:
this class is not key value coding-compliant for the key btnPress.
Connection even wrong, or even more
Reply:
landlord references replies:
my brother novice Iphone development,
After creating Window.xib, run right, but one connected with Window.h control lines, hollow point later become solid, and then run on the following problems.

2012-07-25 11:49:36.032 FirstWin [1896: f803] *** Terminating app due to uncaught exception 'NSUnknownKeyException', re ......


Uh, I think this issue is new to the Apple Developer classmates will encounter, so a little more abstract
Reply:
landlord references replies:
my brother novice Iphone development,
After creating Window.xib, run right, but one connected with Window.h control lines, hollow point later become solid, and then run on the following problems.

2012-07-25 11:49:36.032 FirstWin [1896: f803] *** Terminating app due to uncaught exception 'NSUnknownKeyException', re ......

Posted under your code out,. M and. H in the relevant code. Describing a little too abstract.
Reply:
Nobody is allowed to even begin to understand when he connected it by tutorials, tutorials right on for this look. This and. H,. M okay
Reply:
Nobody is allowed to even begin to understand when he connected it by tutorials, tutorials right on for this look. This and. H,. M okay

How do you know how many pictures are erased CGContextClearRect

Ladies and gentlemen, how do you know how many pictures are CGContextClearRect erased and I would like to erase an image to 80% of the time let him all but disappeared, but do not know how to calculate how many pixels are erased. Please help

The main code:
- (Void) touchesMoved: (NSSet *) touches withEvent: (UIEvent *) event
{
UITouch * touch = [touches anyObject];
if (canEarse)
{

CGPoint currentPoint = [touch locationInView: reaseImage];
UIGraphicsBeginImageContext (self.reaseImage.frame.size);
[ReaseImage.image drawInRect: reaseImage.bounds];
CGContextClearRect (UIGraphicsGetCurrentContext (), CGRectMake (currentPoint.x, currentPoint.y, 50, 50));
reaseImage.image = UIGraphicsGetImageFromCurrentImageContext ();
UIGraphicsEndImageContext ();
}
}



demo Download: http://download.csdn.net/download/xiaohui1224/4318189




Reply:
Nobody has done it?
Reply:
Do not know, only Bangding
Reply:
Well, I think one day would like to say we came up with a way to refer to it:
One would want to erase the picture is divided into 100 virtual small rectangle.
(2) When the painting x, y passes through the rectangular area will be left point of the rectangle into an array (an array of values ​​within the non-repetition)
When the elements of the array 3. Judgment is greater than 80, that means that the path has been painted rectangle 80. Applied for about 80% of the picture.

Of course, if you want to refine the image can also be divided into more rectangular.
Reply:
Thank darkdong Bangding

iOS large file on which directory

My program is an on-demand video, allowing users to download screen, I ask the user to download the screen should be stored in which directory it? Understand what ios sandbox, said he can only operate their own that several directories, document, tmp, library, caches;
That I should let users to download video files by default folder to which it?
Reply:
Is generally placed in the Library / Caches it
Reply:
document: the directory file, the backup will be backed up App; upgrade when you can also reserve;
tmp: system regularly delete;
library: forget their own look.
caches: backup or upgrade, not preserved. The system will not be deleted, you need to manually delete unused files.

Conclusion: Look business requirements.
Reply:
Upstairs very detailed, add this: 5.0 after the system in some special cases may remove content caches directory.
On iOS 5.0 and later, the system may delete the Caches directory on rare occasions when the system is very low on disk space.

What XIB files related skills?

Phenomenon often associated XIB file association errors and not on the use of Xcode 4.3 to see the look fat versions of older books are old mistakes. . . . . .
Reply:
Top about ourselves, no skills, will be a few more mistakes, more and thought
Reply:
cited a floor reply:
themselves to their top, no skills, will be a few more mistakes, more and thought


Oh, yes. UP ~ ~ ~ ~ top! !
Reply:
Recommend that you look at this, I also see this will
http://www.cnblogs.com/ghj1976/archive/2012/05/25/2518121.html
Reply:
I totally do not understand how you say XIB file association does not often appear on the phenomenon and the associated error
Reply:
The problem is you can select the event and some touch anything down.
I mainly look at the input and output have no or changes in the basic structure is initialized when there is need to change the initialization!
Look at the actual situation it!
Reply:
The problem is you can select the event and some touch anything down.
I mainly look at the input and output have no or changes in the basic structure is initialized when there is need to change the initialization!
Look at the actual situation it!
Reply:
Er er, thank
references, 5th Floor reply:
event that you choose what problems can be some touch down
.I mainly look at the input and output have no or changes in the basic structure is initialized when there is need to change the initialization!
Look at the actual situation it!

Reply:
references, 4th Floor reply:
I totally do not understand how you say often associated XIB file association errors and not on the phenomenon
XIB drag by that time not many, not enough to understand most of the output ports, controls, written in code, and now basically solve related problems, mainly what documents mistaken output port

Iphone developed a simple question

I uiImagePickerController from a local gallery how to set selected picture to other places to go, now get this image, in other places need to set this picture picture but do not know how to put this image transfer over? What is the field you want to transfer pictures, because it is a local photo gallery so I do not know if there url, and if passed, then how to get the name of the picture's name?
Reply:
class ClassA
{
imageView img;
}

In uiimagePickController

ClassA a = [[ClassA alloc] init];

Reply:
a.img = imageView
you getBiography passed on
Reply:
Thank you, has been resolved!
Reply:
I also do this, ah how I obviously write up the path, the pictures are placed in the path of the folder where the result is that the picture does not appear.
I feel that my path is wrong. LZ you can dance
Reply:
The reply was deleted at the moderator 2012-06-06 14:45:48

Reply:
You can choose to use uiImagePickerController picture. From the results you can get selected target image uiimage, this thing is in memory, and how to dispose of your own choice, you can show to the place you want it to appear, you can go to the server over the network.
Reply:
By UIImagePNGRepresentation () or UIImageJPEGRepresentation () to save the data into a form NSData

Newbie help build a development environment. .

Company requirements are
office in XP VM virtual machine machine Bottoms
I installed the
VM Virtual Machine 7.0.1 Speaking Lite (attached to the D drive)

Then from the Internet to find a unlock-all-v101 something like
There are two windows folders
I ran inside install.cmd (which also contains the same Unlocker.exe)
What prompted the file can not be found. (Is this patch is not for the VM's?)
Create the ultimate virtual machine option in the installation system have not MACOS option.

May I ask how you are downloading the XP virtual machine and then install MAC system debug + SDK to develop it? (Directly with Apple's large cattle Please disregard this post -)
Detailed tutorial provides you with relevant
Reply:
Installation was going to write a tutorial, but has no time, the following is what I look for in a hope to help you
http://ideapad.zol.com.cn/53/160_525409.html
Reply:
Thank you! In installed ...

Consult a common mistake in the main prompt program received signal: "sigabrt"?

- (Id) initWithNibName: (NSString *) nibNameOrNil bundle: (NSBundle *) nibBundleOrNil
{
self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil];
if (self) {
/ / Custom initialization
}
return self;
}
Perform self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil] after the main prompt program received signal: "sigabrt"
int main (int argc, char * argv [])
{
@ Autoreleasepool {
return UIApplicationMain (argc, argv, nil, NSStringFromClass ([ppcAppDelegate class]));
}
}
May I ask what might be the reason?
xcode 4.2
ios 5.1
Reply:
This approach looked familiar, but my memory, when calling bundle behind the argument given is nil, and not with the incoming one, you try it
Reply:
Code your hair is no problem, the problem is not here, certainly other causes
Reply:
I think of it, here is the controller in view controller initialization method attempts, this method is not generated during normal use xcode templates, lz are you own a building, we have made this method, since the landlord did so , it should go check with connecting xib those files is not a problem, it should be that the file is not connected right, these lines right, because it is xcode generated, lz next time and then paste the contents of the whole point of hair problems, otherwise I really do not This method is easy to think of what appeared

Who big mistake when deep help solve iphong programming, which is where a mistake how to solve ah

2012-07-21 10:21:24.523 Control Fun [1237: f803] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '- [UIViewController _loadViewFromNibNamed: bundle:] loaded the "ViewController" nib but the view outlet was not set. '
*** First throw call stack:
(0x13c9022 0x155acd6 0x1371a48 0x13719b9 0xda2dd 0xda779 0xda99b 0x39401 0x39670 0x39836 0xc881dd8 0x4072a 0x22eb 0x11386 0x12274 0x21183 0x21c38 0x15634 0x12b3ef5 0x139d195 0x1301ff2 0x13008da 0x12ffd84 0x12ffc9b 0x11c65 0x13626 0x1ff2 0x1f65)
terminate called throwing an exception (lldb)
Reply:
Output port is not set, where the view is not associated xib to first responder's view
Reply:
ls positive solution, lz is definitely the time to delete the view that the connection is also deleted, when I first gave it to wipe the grassland, the results should actually leaving a view of the
Reply:
Resolved top two hehe Thanks

Who big mistake when deep help solve iphong programming, which is where a mistake how to solve ah

2012-07-21 10:21:24.523 Control Fun [1237: f803] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '- [UIViewController _loadViewFromNibNamed: bundle:] loaded the "ViewController" nib but the view outlet was not set. '
*** First throw call stack:
(0x13c9022 0x155acd6 0x1371a48 0x13719b9 0xda2dd 0xda779 0xda99b 0x39401 0x39670 0x39836 0xc881dd8 0x4072a 0x22eb 0x11386 0x12274 0x21183 0x21c38 0x15634 0x12b3ef5 0x139d195 0x1301ff2 0x13008da 0x12ffd84 0x12ffc9b 0x11c65 0x13626 0x1ff2 0x1f65)
terminate called throwing an exception (lldb)
Reply:
nib file view is not connected to your UIViewController's view
Reply:
Make sure you from the corresponding. Xib file inside to get a view and view your left values ​​are consistent?
For example:
UITableViewCell * cell = [[[NSBundle mainBundle] loadNib: @ "XXX"] objectAtIndex: YYY];
1, XXX not need to fill suffix.
2, YYY represents. Xib inside the view number, and if one can usually lastObject.
3, make sure your. Xib inside view is UITableViewCell?
Reply:
The reply was deleted at the moderator 2012-07-27 09:39:36

Reply:
Thank you Resolved top

Help, Corporate Account Application (DUNS code)

Enterprises need a Dun & Bradstreet account coding, coding Dun & Bradstreet ask how much ah, the official website gave me the lowest bid is
For 2 years (8600) Audit 4300 yuan / year to establish business credit file online, intuitive business intelligence to enhance the credibility
There is no cheaper, who requested, how much money to spend, say under what
Reply:
The price considered possible.
This must. .
Reply:
What is D & B coding
Reply:
The landlord later paid a DUNS how to get this, you need to pay so much money? I also need to apply for the Apple Corporate Account
Reply:
To the third floor, then you can contact me, qja2004@163.com I can guide you
Reply:
The reply was deleted at the moderator 2012-06-13 09:13:02

Reply:
We are looking for agents to submit DUNS 3000 fully resolved, Shanghai Information Technology Co., Ltd. Zhang Yuan
Reply:
Code 3000 registered you contact QQ1731177943
Reply:
Contact me if you can find QQ376916868

Static library, the timer NSTimer invalid?

I wrote a static library, which has a timer, but found no response timer, the timer will not go into?

Is it a static library does not support timers do? ?

Reply:
This. . Make sense of it
Reply:
cited a floor reply:
this. . Make sense of it

I also find it strange ah! !

Reply:
The tricky tile
Reply:
Know how it happens, Lib commissioning of NSObject found no running from it! !

APNS, C2DM heartbeat process, how to achieve it?

Hello everyone, I want to ask a question:
1, on APPLE's APNS platform, I know he's a heartbeat message is 15min, ask specifically how it processes the message, such as messages back and forth several times, each time the size of the message content and what is it?
QQ is the 300s as a heartbeat, every heartbeat is QQ client initiates a packet, then QQ server response data + confirm, and then the phone QQ client back to confirm the interaction of three packages to complete a heartbeat process. Will APNS is not it?
2, the same problem, C2DM the heart of it?

Reply:
c2dm you can capture and see.

doubts touchesBegin methods

I'm doing a lianliankan game, in which there is a place that is: when a finger is pressed, according to another finger, how to approach it also triggers touchesBegin

Reply:
Has been resolved setMultiTouchEnable: yes

Who used the uiwebview ios5 ckeditor?

I'm developing iPad applications, you need a word processor functions because UITextView is very limited,
I want to use, especially by release of iOS5 TinyMCE or ckeditor.
However, when I try to load a UIWebView these API index.html page, the project toolbar does not show up (copy, paste, fonts, ...)
And with all the display text labels. I have something to edit index.html page,

I want to modify the JavaScript or other documents, work for it UIWebView? Thank you
Reply:
Did not understand
Reply:
What do you mean
Reply:
Is my ability to express so bad?

Simply just want to achieve a rich text editor
ios
Those few who used open-source, anyway, I not take
Reply:
BCTextView is read-only
EGOtextview not enter Chinese
JTextview not be complete without demo does not know how to use a bug src
Reply:
The wind brother, wants to browser?

Since it is on the iOS App, you change the JS doing ah?
Reply:
here's no way to set different colours for different works in a UITextView.

There are multiple replacements for a UITextView which support rich text editing (listed bellow). However if you only want to give different text different color's in a UITextView (like syntax highlighting) the easiest thing to do is just use a UITextView itself for the editing with a CoreText overlay displaying the coloured text.

https://github.com/SquaredTiki/EditableCoreTextOverlay

EGOTextView: http://www.cocoacontrols.com/platforms/ios/controls/egotextview
BCTextView: http://www.cocoacontrols.com/platforms/ios/controls/bctextview
JTextView: http://codaset.com/jer/jtextview
http://www.cocoacontrols.com/search?utf8 =% E2% 9C% 93 & q = rich + text & commit = Search
Reply:
I also realize the rich text editor, uitextview webview have limitations and do not know if you realize that no ah? Up to share with you. . . . . 327965728@qq.com

mountain lion problem under xcode 4.4

First of all, you are finished using 5.1 and 5.0, if the exit rather than stop debugging emulator, IDE will always be stuck in debug mode. xcode 4.3 no such problem

Secondly, iOS 4.3 emulator not open! ! ! ! ! ! ! ! ! !

You seniors how to solve? ? ? ? ? ?

Raise another, Xcode 4.3 energy and 4.4, Xcode 4.4 and 4.5 can coexist?
Reply:
Can coexist. Several more equipment. Xcode version because these are pit father.
Reply:
xcode 4 can be
Next 4G and more stable version of
You try

Reply:
reference to the second floor of the reply:
xcode 4 can be
Next 4G and more stable version of
You try

1 hour ago can download in the Apple Developer Center to xcode 3.x.x + iOS 4.2 sdk, hands a step slow, it may now be my browser issue, it may be off the shelf. . . .
Reply:
Sometimes the brush does not come out ~!
Reply:
I was ML + xcode? 4.4, the IDE has been stuck in no case debug state. ML is not supported under xcode ios4.3, no matter what version you use, unless you change xcode Lion. This is a trend that you can not resist
Reply:
Does not support the simulator 4.3, of course, you can still support the application development 4.3.

IOS what the meaning of this sentence is the club ah! Seeking answers

posts by shencaifeixia1 on 2012-07-19 23:13:45 Edit
 
@ Implementation PersonCenterViewController

@ Synthesize name = name_;
@ Synthesize sex = sex_;
@ Synthesize QQ = QQ_;


One of the "name_", "sex_", "QQ_" statement can not be found, what is the use of it, seeking answers! !
Reply:
Set the alias you look carefully window @ synthesize window = _window;
Behind the usage is [_window release];
Reply:
Set the alias you look carefully window @ synthesize window = _window;
Behind the usage is [_window release];
Reply:
"Name_", "sex_", "QQ_" is an instance variable PersonCenterViewController of

However, the external display properties is indeed name, sex, QQ

You can take a look. H

Should write the @ property ... name;


The real purpose is to properties and instance variables names are inconsistent

Reply:
Header file which should have declared.

@ Property declaration can get rid of the creation process (simplified code) access method and the modified method. It combines with the @ synthesize, is to tell the compiler to create a modified method and set method at compile time, but the bottom is still to declare instance variables do not need to modify the definition of access methods and methods.

You should have a look at these three variables declared inside you. H file.
Reply:
references, 4th Floor reply:
header file should have declared.

@ Property declaration can get rid of the creation process (simplified code) access method and the modified method. It combines with the @ synthesize, is to tell the compiler to create a modified method and set method at compile time, but the bottom is still to declare instance variables do not need to modify the definition of access methods and methods.

You should have a look at these three variables declared inside you. H file.

No pro, I do not go with command points, and the header file is not declared. . .




Reply:
references, 5th Floor reply:
references, 4th Floor reply:

Header file which should have declared.

@ Property declaration can get rid of the creation process (simplified code) access method and the modified method. It combines with the @ synthesize, is to tell the compiler to create a modified method and set method at compile time, but the bottom is still to declare instance variables do not need to modify the definition of access methods and methods.

You should have a look at these three variables declared inside you. H file.

No pro, I do not go with command points, and header files do not ......


Does not declare pull, except to create the access method used by old-fashioned methods and modify the method. Instead of using @ property
Reply:
This situation is entirely possible, but you must write the file attributes h or m @ property (nonatomic, retain) name;.. Etc. Such h in ios system will automatically generate a name for you or _name or name.. _ or the other.
Reply:
Followed by an equal sign is to set an alias to avoid getter and instance variables of the same name, and sometimes the same, and it can not tell when the call is an instance variable getter or an error occurs, so add an underscore, do instance variables, which are common practice, of course, can be the difference between an alias
Reply:
Stanford is looking to develop iphone video to see it, talk about it in detail. Youku and Netease have.
Reply:
Agree upstairs
Reply:
Define a property in the h file, @ property (nonatomic, strong) UIButton * touchButton;. Then m file @ implementation class name written below @ synthesize touchButton = xxxx;. Xxxx can be written in the name you want to define, as m_touchButton. At this point, m_touchButton was a member variable of the class, no special at. H file written specifically declare member variables again. The difference between the member variables and attributes are instances of the class can access the property, but can not access the member variables. @ Synthesize touchButton = xxxx; however, avoided writing get and set methods and member variables and properties correspond
Reply:
Synchronization problems attributes, alias settings wrong, if you use the @ synthesize it means to generate default attributes, so you will need to set up and synchronize your unity
Reply:
Stanford is looking to develop iphone video to see it, talk about it in detail. Youku and Netease have

Neighborhoods MAC installation above PKG_config

If that. Urgently ah, thank you ah.
Reply:
You greatly help the Manga, extremely grateful ah! !

Reply:
Come individuals, ah, send points to pull! !

Neighborhoods concept of push notifications!

Assuming the content is push notification "Your car was stolen," If this application is running (and not closed), then how to deal with this notification (including the server and client)?

If you can provide the better learning materials ~ ~ ~

I hope to God means a big way.
Reply:
Applications running in the foreground when dealing here with a push message
- (Void) application: (UIApplication *) application didReceiveRemoteNotification: (NSDictionary *) userInfo
Reply:
The official does not guarantee the order will be push notifications and push success.

How to get a picture of the width and height jepg size!

I now have only one jepg picture data buffer (char * pbuf), do not know the width and height of the image, in the image display width and height when needed, how to get it to the width and height? ?
Reply:
How nobody can return it? ? ?

Reply:
Because you give points too.
Reply:
I am a novice, this has been the highest score I can give up! We help out!
Reply:
Impossible to give the highest score, even if you just registered also can send 100 postings. Your generous enough, others did not power.

I tell you approach it with a size method UIImage class. For example:
UIImage * p = [UIImage imageNamed: @ "a.jpg"];
Width: p.size.width
Height: p.size.height
Reply:
Thank you, my heroes! I have only one picture of the buf (char * pbuf) but no picture names. This method may not work you. I want to affirm that: I just posted when the system prompted me to send only 22 points in the post. I have no way!
Reply:
2 ways it can go about the next jpeg file header format, remove the file information.
Or
NSData * data = [NSData dataWithBytes: .......];
UIImage * image = [UIImage imageWithData: data];
The rest is the same as above.

Iphone recommend two books to children's shoes in the entry and anxious foggy ...

posts by BcgBcr edited 2012-06-29 17:59:46
He is also learning to develop one iphone novice, this time to deeply understand, Suanku taste of objective-c. This began to look too simple, just buy an introductory tutorial to see, who knows this is basically writing operation, interpretation is not in place, it made me very difficult to learn, iphone developers began to think it would have been so difficult to understand.
Recent house specially off one morning a mortar bookstores. Found that there are two good books, see the forum has some novice loss, especially recommended for everyone.
First this: IOS4 combat: IPHONE and IPAD application development
Price: 69, other shopping sites Price: around 51
Recommended reason:
1, this book is written for the Xcode4 the IDE, avoid using Xcode4IDE, holding a book for the 3.2.5 interface unreasonable distress.
2, (the biggest advantage) to use the event framework, functions, etc. instructions are listed in tabular good (I really like, intuitive, straightforward reference) - added: This book is also for novice tutorial
I've uploaded to CSDN the source address: http://download.csdn.net/detail/bcgbcr/4401508
Cons: No second book written exhaustive. The book is not very good ...... writing paper will invade ink ......

Second this: iphone4 and ipad Development Essentials
Price: 79, other shopping sites Price: around 52
Recommended reason:
1, (the biggest advantage) for the novice, elaborated very easy to understand, in detail and more (not much basis to recommend shoes) than the book
2, the paper well (since I read the first two chapters which give me the impression that writing is very clear, very easy to understand)
Cons: not listed events, framework, functions, etc. description table, unfortunately. For this, I hesitated for a long time to buy ......
between what theI've uploaded to CSDN the source address: http://download.csdn.net/detail/bcgbcr/4401545
The above two books to recommend to iphone development of new shoes, hoping to help you ...... another: you can go to the bookstore to look at the field, which is determined to be the buy online buy cheaper ......
Reply:
Thank you for sharing, master ah
Reply:
Almost two books, there is still a very critical. In fact, you should look at grammar, look IDE. Looking for the objective-c to see it. Basic grammar understood it, xcode with them much easier
Reply:
reference to the second floor of the reply:
almost two books, there is still a very critical. In fact, you should look at grammar, look IDE. Looking for the objective-c to see it. Basic grammar understood it, xcode with them much easier

Ah, the two books are not too much to introduce grammar objective-c, but there is little to explain the next chapter, I now feel that the code should look more on the understanding of it, the daily programming should be no problem, (probably think so is wrong) Oh ...
Reply:
cited a floor reply:
Thanks for sharing, master ah

A novice, we have to rely on after a lot of pointing ...
Yes, Jiehuaxianfo in this post, special thanks for helping me ydj213 willing ydj213 speedy recovery, extra cash ......
Reply:
The landlord Hello, I also want to learn IOS, the novice, recently irrelevant XCODE, installed the system in trouble are not installed on your computer, trouble landlord urged to QQ brother Gaga, is still in college, keep learning and hope a lot of guidance
Reply:
references, 5th Floor reply:
landlord Hello, I also want to learn IOS, the novice, do not have access XCODE in recent computer troubles, installed systems installed not, trouble landlord urged to QQ brother Gaga, is still in college, keep learning, I hope a lot of pointing

What are you computer system?
Reply:
references, 5th Floor reply:
landlord Hello, I also want to learn IOS, the novice, do not have access XCODE in recent computer troubles, installed systems installed not, trouble landlord urged to QQ brother Gaga, is still in college, keep learning, I hope a lot of pointing

Put your computer configuration sent to look at.
Reply:
The reply was deleted at the moderator 2012-08-08 08:49:35

Map drawing a line problem - [MKPolyline interiorPolygons]: unrecognized selector sent to instance

Ask you, - [MKPolyline interiorPolygons]: unrecognized selector sent to instance 0xe054040 is why this exception
Reply:
MKPolyline object does not interiorPolygons method,
MKPolyline class or object? interiorPolygons method is + or - methods? Or I did not
Reply:
Thank you, the problem has been resolved. . .
Reply:
How to solve, seek solutions

IPhone audio port communication?

Will I want to be a case of iPhone audio port communication, would like to send to the audio port and receive custom data flow, how does the implementation, or the use of any API
Try AVAudioPlayer, seemingly legitimate only play formats such as MP3 and the like. Custom data stream seems unable to play!
Will the large cattle, what a good way?
Reply:
You're really big cow. Custom audio formats, you have to write your own audio parser. Then we can only resolve to pcm format. pcm is the foundation, even if you do not comply with pcm format, you can not top the iphone developed. R & D must first own a Xphone.

Your basic bad, get to know some of the basic concepts and then develop it. Pcm data are generally collected, mp3 is a better compression algorithm. Of course you can not mp3, write your own compression algorithm. I do not believe you can also write an algorithm cattle X than mp3 out. So you compress your mp3 collection directly to pcm data would be finished. If you consider security, put the mp3 compression finished just encrypt it.
Reply:
Also a big Niua
cite a floor reply:
your real Daniel. Custom audio formats, you have to write your own audio parser. Then we can only resolve to pcm format. pcm is the foundation, even if you do not comply with pcm format, you can not top the iphone developed. R & D must first own a Xphone.

Your basic bad, get to know some of the basic concepts and then develop it. Pcm data are generally collected, mp3 is a better compression algorithm. Of course you can not mp3, write your own compression algorithm. I do not believe you can also write an algorithm cattle X than mp3 out. So you directly mp ......

Reply:
landlord references replies:
do I want to be a case of iPhone audio port communication, to send and receive data streams into custom audio ports, what is the How to achieve, or what the use of API
Try AVAudioPlayer, seemingly legitimate only play formats such as MP3 and the like. Custom data stream seems unable to play!
Will the large cattle, what a good way?


Sorry, I was wrong, I thank the guidance
I am using PCM format. My own custom bit0 and bit1 sinusoidal representation, I am using AudioUnit to achieve. Now the problem encountered is AudioUnit are constantly carried Play and Record callbacks, always have data, such as if I have plugged a microphone to speak, then the data can callback function effectively, but there will be no recording callback is invoked. So I call their own algorithms to parse the data difficult to handle. Is there really such a recording device when access to the data and when it does have it generate a callback?
AVAudioRecorder and AVAudioPlay to achieve it? I see the data when AVAudioPlay seemingly does not support streaming, I used the code test also found no way to play their own definition of data.

@ @ How to close the popover way storyboards set in open view? @ @

Ask how close the popover manner in storyboards set to open the view? Originally opened have used uipopovercontroller can be used dismisspopoveraninmated close, but close popover way through the above settings can not speak
Reply:
Find a solution to the ~ ~

if ([segue.identifier isEqualToString: @ "showPopover"]) {
FooBViewController * bVC = segue.destinationViewController;
bVC.popover = [(UIStoryboardPopoverSegue *) segue popoverController];
}

AsyncSocket heroes seeking class data reception problems

Send me the server returns data, the size of probably 20kb (small b, bit), I received a length but only 2872b, much can be achieved when 7180, the minimum time is 1436, (these numbers are multiples of 1436). reading time, I have set to -1, which is the maximum length of the return ... 2872 is the most common ...
Will the brightest heroes, have not encountered such a situation, or you think it may be the reason?
Reply:
I estimate that by 1436 the size of your server subcontracting The.
Reply:
cited a floor reply:
I estimate the size of your server by subcontracting the 1436's.


Nor is it, the server is a one-time all the data returned ..
Reply:
Server is sending data one time, but the client receives ... and each batch was received with a length not consistent ... this ..
Reply:
Packet length hair may fixed, but the length of time will be smaller when the received packet.
The length is not self-control, which is the underlying tcp transmission do the work. Data sent to the buffer memory, when the whole of the slow network when two packages will be sent with bonded together. This phenomenon is often seen in tcp data transmission. .
Reply:
references, 4th Floor reply: length packets may be sent
fixed, but the length of time will be smaller when the received packet.
The length is not self-control, which is the underlying tcp transmission do the work. Data sent to the buffer memory, when the whole of the slow network when two packages will be sent with bonded together. This phenomenon is often seen in tcp data transmission. .

Ah, I am looking for a long time, only to find that really is the case. For example, the original data is AAAAAA, now split into two packages, the two packages together inside the data plus the length exceeds the length of the original package, and what extra length? It would not be appropriate format, such as the target IP, port or something? Or packet sequence?
Reply:
Carrier bag with tools such as data seen mostly because it was part of the protocol header tcp tcp packet header is automatically added!
Reply:
references 6th Floor reply:
carrier bag with tools such as data seen mostly because it was part of the protocol header tcp tcp packet header is automatically added!


Does this part of the header, how should I resolve?
Reply:
For example, the original data is AAAAAA, now split into two packages, the two packages together inside the data plus the length exceeds the length of the original packet.

Nonsense. If the server sends a AAAAAA, then send BBBBBB, you receive may be AAAAAA, then receive BBBBBB, or one-time receipt AAAAAABBBBBBB. There is no other. What analysis do not capture what XX. Learn better foundation
Reply:
referenced 8th Floor reply:
such as the original data is AAAAAA, now split into two packages, the two packages together inside the data plus the length of more than the length of the original packet.

Nonsense. If the server sends a AAAAAA, then send BBBBBB, you receive may be AAAAAA, then receive BBBBBB, or one-time receipt AAAAAABBBBBBB. There is no other. What analysis do not capture what XX. Learn basic better

Server only sends a AAAAAABBBBBBB, and I was repeatedly receiving side, and the total length is longer than the server sends more than a few bytes, I do not know more than a few bytes out of this is how it ... ..
Reply:
Ah, the problem has been solved by half, said the upstairs right, there will be no redundant data, assembled like, just stick pack phenomenon is horrible ... this requires a good deal ....
Reply:
The reply was deleted at the moderator 2012-08-03 09:13:56

Reply:
The reply was deleted at the moderator 2012-08-03 09:13:55

There continues to define a macro in another class method among

That there is no way to continue to define a macro as in (class1)

# Define num (x) x == 0? 1:2
Continue to want to define
in (class2) insidenum (x) x == 1? 3:2
Reply:
As you do this you put into your macro member function bar.
Reply:
Allowed to redefine
Reply:
First # undef xxx
Then # define xxx
Reply:
After this test, not a reference to the third floor
reply:
first # undef xxx
Then # define xxx

Reply:
After this test, not a reference to the third floor
reply:
first # undef xxx
Then # define xxx

cocoa raw image data is displayed in the video

System: mac osx. Now use the camera to get the data, how to display it in the video, is to get to Chen in every way into bitmap image painting inside out? ? To use image processing to those classes? ? Select the kind of view as a canvas better? ? ?
Reply:
The reply was deleted at the moderator 2012-08-01 10:37:44

Reply:
I am doing anything wrong? ? This setting can not be used to display video images the way? ? ?
if (getFrame (handle, _pBuffer, 0))
{
NSData * data = [NSData dataWithBytes: _pBuffer length: sizeof (_pBuffer)];

/ / Update the display Area to redraw the new frame
NSBitmapImageRep * bitmapRep = [NSBitmapImageRep imageRepWithData: data];

NSImage * image = [[NSImage alloc] initWithCGImage: [bitmapRep CGImage] size: NSMakeSize (_iWidth, _iHeight)];
[_frameView SetImage: image];

[Image release];
}
}
Reply:
Do not know, Bangding a
Reply:
Hey, knot paste it, fiddle with it, too lazy to say

On the issue of multiple View window switch, we ask

Create a single view application project, added four other view, would like to do in these free-view window switch, do not know can not be achieved, or a novice, we ask the
Each window in the five buttons, so easy to switch to other views

# Import
# Import "FirstViewController.h"
# Import "SecondViewController.h"
# Import "ThirdViewController.h"
# Import "FourViewController.h"
@ Interface ViewController: UIViewController
- (IBAction) gotoFirstView: (id) sender;
- (IBAction) gotoSceondView: (id) sender;
- (IBAction) gotoThirdView: (id) sender;
- (IBAction) gotoFourView: (id) sender;
@ Property (retain, nonatomic) FirstViewController * firstViewController;
@ Property (retain, nonatomic) SecondViewController * secondViewController;
@ Property (retain, nonatomic) ThirdViewController * thirdViewController;
@ Property (retain, nonatomic) FourViewController * fourViewController;
@ End

The above is the main View code
Click on each subsequent code below
BUTTON- (IBAction) gotoFirstView: (id) sender {
if (self.firstViewController == nil) {
firstViewController = [[FirstViewController alloc] initWithNibName: @ "FirstViewController" bundle: nil];
[Self.view addSubview: firstViewController.view];


} Else {
[Self.view addSubview: firstViewController.view] ;/ / re-display the first window
}
}

- (IBAction) gotoSceondView: (id) sender {
if (self.secondViewController == nil) {
secondViewController = [[SecondViewController alloc] initWithNibName: @ "SecondViewController" bundle: nil];
[Self.view addSubview: secondViewController.view];
}
}

- (IBAction) gotoThirdView: (id) sender {
if (self.thirdViewController == nil) {
thirdViewController = [[ThirdViewController alloc] initWithNibName: @ "ThirdViewController" bundle: nil];
[Self.view addSubview: thirdViewController.view];
}
}

- (IBAction) gotoFourView: (id) sender {
if (self.fourViewController == nil) {
fourViewController = [[FourViewController alloc] initWithNibName: @ "FourViewController" bundle: nil];
[Self.view addSubview: fourViewController.view];
}
}
In such a way that I can switch to another window

In FirstViewController to be cut back to the main window, I use the following code
- (Void) viewDidLoad
{
[Super viewDidLoad];
/ / Do any additional setup after loading the view from its nib.
NSLog (@ "FirstViewDisplay");
}
- (Void) viewWillAppear: (BOOL) animated {
NSLog (@ "FirstViewDisplay viewWillAppear");
}
- (Void) viewDidUnload
{
[Super viewDidUnload];
/ / Release any retained subviews of the main view.
/ / E.g. self.myOutlet = nil;
NSLog (@ "FirstViewRemove");
}

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation
{
return YES;
}

- (IBAction) gotoMainView: (id) sender {/ / The first window to remove

[Self.view removeFromSuperview];
}

- (IBAction) gotoSecondView: (id) sender {
}

- (IBAction) gotoThirdView: (id) sender {

}

- (IBAction) gotoFourView: (id) sender {

}
So that I can achieve with the main FirstView with the main switch
ViewThe first switch to FirstViewController viewDidLoad function call about
Is there a way to switch to FirstViewController window every time there is news notice it
There is a switch back to the main View when there are message notification, because the main View of viewDiidLoad will only be called once, later switching would not call

Want to achieve these five VIEW button to switch between each other, and there is a message notification, the
ask you seniors

Reply:
NSNotification this can send a message, you can look at. Certainly can solve your problem.

But the view of the switch so you do not, and you may not understand the iphone's view, and the windows of the form is essentially different. Slowly learning it.
Reply:
cited a floor reply:
NSNotification this can send a message, you can look at. Certainly can solve your problem.

But the view of the switch so you do not, and you may not understand the iphone's view, and the windows of the form is essentially different. Slowly learning it.

Thank you for your answer, I have just started to engage in this thinking is still stuck in windows side, but the business needs are Well, you need to be able to see some form of mutual switch
Reply:
I have an example of left-mail sent to you, only to realize the switching view, there is no transfer news
Reply:
2570338224@qq.com

Trying to solve a big release iPhone application file problem

posts by airsoft on 2012-08-06 10:02:26 Edit
I am a rookie, is learning iPhone application development, we encounter a problem, Xcode just released a small application, there are several megabytes. How when publishing iPhone applications to their weight-loss? The best spot to give detailed information and instructions.
Reply:
Application of a few small M? How many images you put in there? You misread it, if no picture, the general also twelve M.
Reply:
Should be a resource problem: images, video, audio and more.

IOS compiler platform open source media player VLC questions.

I downloaded directly from the official online source, there are three documents, a library, an application, an IOS platform library,
Now my media library files and application files are compiled almost,
Ios sent compile a
Specifically:
Compile VLCKit of the compiler passed, like to say, but unfortunately encountered a problem to find a lot of foreign sites, still not resolved, I hope jars brothers help out the younger grateful,

Here to talk about the specific error:
VLCKit
 
/ XXX/VLC-1.1.0-iOS/projects/macosx/framework/Configure.sh: line 92: / Kuvision/VLC-1.1.0-iOS/projects/macosx/framework / .. / .. / .. / configure: No such file or directory

 
PhaseScriptExecution bootstrap "build / VLCKit.build / Debug / Run VLC configure.build/Script-631A90420D5A007D0014A2CE.sh"
cd / Kuvision/VLC-1.1.0-iOS/projects/macosx/framework
/ Bin / sh-c "\" / Kuvision/VLC-1.1.0-iOS/projects/macosx/framework/build/VLCKit.build/Debug/Run VLC configure.build/Script-631A90420D5A007D0014A2CE.sh \ ""

+ + Dirname. / Bootstrap
+ Cd.
+ ACLOCAL_ARGS = '-I m4'
+ Test-d extras / contrib / build / bin
+ + Uname-s
+ Test. Darwin =. Darwin
+ Set + x

ERR: Contribs haven't been built
ERR: Please run:
ERR:
ERR: 'cd extras / contrib && / bootstrap && make && cd .. / ...'
ERR:
ERR: Make sure fink has been disabled too
.
+ Exit 1
Command / bin / sh failed with exit code 1


Reply:
The above error is to compile VLCKit the "Run VLC configure" error, the other Target there are different mistakes, only Setup VLC configure
Reply:
Not used Bangding ⋯ ⋯
Download from where?
Website to share chant ⋯ ⋯
Reply:
http://www.videolan.org/vlc/download-ios.html

Download here have time to see Kane

Open source support streaming media player

Reply:
This tendency to see it to sink under its own roof ah ~ ~ ~
Reply:
Shen also fast friends ....
Reply:
Bangding ~
Reply:
So touched ~ ~ ~ 100 is all yours ~ ~ ~
Reply:
I do not lack is a diagram of a bustling ~ ~ ~ ~


Reply:
Landlord, you are rolling a compilation of it?
Reply:
To my community to download compiled documentation. .
Reply:
I do not know the landlord to get it, ask for advice ah
Reply:
The reply was deleted at 2012-08-30 13:25:44 moderator

json data containing Chinese, parsing always a null value, seek expert education

NSURL * url = [NSURL URLWithString: @ "http://www.cnliuda.com/API/index1_hot.asp"];
ASIHTTPRequest * request = [ASIHTTPRequest requestWithURL: url];

[Request setDelegate: self];
[Request startAsynchronous];


- (Void) requestFinished: (ASIHTTPRequest *) request
{

NSString * responseString = [request responseString]; / / For binary data, use: NSData * responseData = [request responseData];
NSLog (@ "% @", responseString);

arrayData = [NSJSONSerialization JSONObjectWithData: [responseString dataUsingEncoding: NSUTF8StringEncoding] options: NSJSONReadingMutableLeaves error: nil];
NSLog (@ "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!! ");
NSLog (@ "arrayData =% @", [arrayData description]);

}
/ / Request fails, get error
- (Void) requestFailed: (ASIHTTPRequest *) request
{
NSError * error = [request error];
NSLog (@ "% @", error userInfo.);
}
Then been output arrayData = nil, "itemName" on the page: "fringed vest doll dress ~", "itemDesc": "This is a great upper body, the fabric is very comfortable, white color, skin effect is often gray lining Ay ~ "print out" itemName ":" 流 苏 背 心 娃 娃 裙 ~ ", "itemDesc": "这 一 款 上 身 效 果 极 佳 , 面 料 也 很 舒 服 , 纯 白 的 颜 色 , 衬 肤 效 果 灰 常 好 哦 ~ ", has not found a solution, ask God to help large
Reply:
Web client data released is UTF-8 encoding it?
Reply:
In other postings have replied, tried not?


http://www.cnliuda.com/API/index1_hot.asp This is used for encoding
UTF-8
Although the normal browser can parse into Chinese, but you see through the browser source code found, in fact, and you get to the data is the same solution:
http://www.cnliuda.com/API/index1_hot.asp to GB2312 code output

Or:

1, NSString * responseString = [request responseString]; instead
NSData * responseData = [nsstring dataUsingEncoding: -2147482063];

2, in the back of an increase in the following statement
NSStringEncoding enc = CFStringConvertEncodingToNSStringEncoding (kCFStringEncodingGB_18030_2000);
NSString * responseString = [[NSString alloc] initWithData: responseData encoding: enc];
Reply:
The reply was deleted at the moderator 2012-08-09 08:37:18

json data containing Chinese, parsing always a null value, seek expert education

NSURL * url = [NSURL URLWithString: @ "http://www.cnliuda.com/API/index1_hot.asp"];
ASIHTTPRequest * request = [ASIHTTPRequest requestWithURL: url];

[Request setDelegate: self];
[Request startAsynchronous];


- (Void) requestFinished: (ASIHTTPRequest *) request
{

NSString * responseString = [request responseString]; / / For binary data, use: NSData * responseData = [request responseData];
NSLog (@ "% @", responseString);

arrayData = [NSJSONSerialization JSONObjectWithData: [responseString dataUsingEncoding: NSUTF8StringEncoding] options: NSJSONReadingMutableLeaves error: nil];
NSLog (@ "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!! ");
NSLog (@ "arrayData =% @", [arrayData description]);

}
/ / Request fails, get error
- (Void) requestFailed: (ASIHTTPRequest *) request
{
NSError * error = [request error];
NSLog (@ "% @", error userInfo.);
}
Then been output arrayData = {}, solving
Reply:
Note encoding. Client and Web client released to unity.
Reply:
In other postings have replied, tried not?


http://www.cnliuda.com/API/index1_hot.asp This is used for encoding
UTF-8
Although the normal browser can parse into Chinese, but you see through the browser source code found, in fact, and you get to the data is the same solution:
http://www.cnliuda.com/API/index1_hot.asp to GB2312 code output

Or:

1, NSString * responseString = [request responseString]; instead
NSData * responseData = [nsstring dataUsingEncoding: -2147482063];

2, in the back of an increase in the following statement
NSStringEncoding enc = CFStringConvertEncodingToNSStringEncoding (kCFStringEncodingGB_18030_2000);
NSString * responseString = [[NSString alloc] initWithData: responseData encoding: enc];
Reply:
The first way you said did not try, second try, useless.
Reply:
In other ways:

Method One:
In
NSString * responseString = [request responseString];
Here plus
NSString * str2 = [responseString stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];

Then output str2

Method Two:

In
NSString * responseString = [request responseString];
Here plus
NSString * str2 = [responseString stringByReplacingPercentEscapesUsingEncoding: NSUTF8StringEncoding];

Look at the value of str2.
Reply:
Do not use UTF-8 encoding, and use this to try:
NSStringEncoding enc = CFStringConvertEncodingToNSStringEncoding (kCFStringEncodingGB_18030_2000);

ios's view view dynamic background

How to achieve this? The webview cover at the bottom? Can not directly play the animation? Because it is the background, it is not covered by the above controls
Reply:
The webview cover at the bottom?

I may be bad ability to understand, do not understand what you're saying. Gif can be done by moving up in the background. If it is another video, can not do background.
Reply:
cited a floor reply:
the webview cover at the bottom?

I may be bad ability to understand, do not understand what you're saying. Gif can be done by moving up in the background. If it is another video, can not do background.

Well, it is simply, how do gif background. In fact, had wanted to use other formats
Reply:
You put forward uiwebview below, put gif on uiwebview inside, then other controls on top, the other controls the background is set to transparent.

Other video format the system will automatically use the player to play, so can not do background. Unless you put the video into a frame by frame rgb picture, and then put under a uiimageview. Then the timing change the picture up. This little difficult, but achievable.
Reply:
xcode there is such, nib editor controls the left side of the top surface is up and running on the bottom, at the back of the controls up and running on at the top. So what you want at the bottom, you put the top surface
Reply:
references, 4th Floor reply:
xcode there is this, nib editor controls the left side of the top surface is up and running on the bottom, at the back of the control running on at the top. So what you want at the bottom, you put the top surface

ImageView not use it?
Reply:
How to gif on uiwebview inside this requires a little knowledge of html, you can create an html file in the project inside, and then inside the img tag with the picture into them, images and html put this together with a relative path can be. Then uiwebview load the html on it.
Reply:
imageview inside the picture does not seem to move. You can try, which I have not tried. uiwebview inside the picture is moving. You can look up what the controls inside the gif moving.
Reply:
reference to the 7th floor of replies:
imageview inside the picture does not seem to move. You can try, which I have not tried. uiwebview inside the picture is moving. You can look up what the controls inside the gif moving.

How to prevent uiwebview in that picture is selected, as well as to prevent the user or by sliding uiwebview Zoom
Reply:
All controls have attributes, like asking enabletouch, you get rid of this, it can not accept that controls the user touches the incident.
Reply:
reference to the 9th floor Reply:
all controls have attributes, like asking enabletouch, you get rid of this, it can not accept that controls the user touches the incident.

Thanks, there is a problem, if the pop-up modal view inside view in a parent, how to make the background transparent modal view, parent view can be displayed in the background, and the subview opaque modal view on this
Reply:
What you say is presentModalViewController? This get well. You can get hold of their own view, write your own code to put it pop it, the view in the background is set to transparent, subview opaque background on it.
Reply:
Note that the background transparent, alpha property is not control. The background color is set to clear color on it

How to implement custom code UINavigationBar

I ask you: How to code a custom UINavigationBar:


I intend to re-initialize inherited UINavigationController _navigationBar.


Seems syntax does not allow. Cheap does not pass.


Internet is not easy to find a few examples. Implementation are relatively simple, not my needs.




My needs:


title: is an image.


back button is a custom button (image)


forward button is also custom button


The background is completely transparent


I was a novice, heroes door gets advice. Has baidu and google a lot.


Some people say that with three20, so currently does not intend to engage in open. Always think ios development, this simple realization, there should be a simple way.


I did symbian android, to achieve this effect, very simple.

Reply:
You can consider the hidden system provides navigation bar, instead of using their own bar
Reply:
Customize a view to add controls
in view where you need
UIView * MyToolView = [[UIView alloc] initWithFrame: CGRectMake (0, 0, 320, 44)];
UIBarButtonItem * UIBarBtn = [[UIBarButtonItem alloc] initWithCustomView: MyToolView];
[Self.navigationItem setLeftBarButtonItem: UIBarBtn];
[UIBarBtn release];
[MyToolView release];


Reply:
My needs:
title: is an image.
back button is a custom button (image)
forward button is also custom button
The background is completely transparent
-------------------------------------------------- ----
Your these requirements can be achieved under UINavigationController not do
1.title: an image
You can use self.navigationItem.titleView = [[[UIImageView alloc] initWithImage: [UIImage imageNamed: @ ""]] autorelease];
2.back button is a custom button (image)
This can be set in the controller backBarButtonItem
parent controllerUIBarButtonItem * back = [[UIBarButtonItem alloc] initWithImage: [UIImage imageNamed: @ "x.png"]];
navController.navigationItem.BackBarButtonItem = back;
[Back release];
3 Set the background transparent
You can use the Category to expand UINavigationBar, such as:
@ Interface UINavigationBar (custom)

- (Void) drawRect {
self.alpha = 0.5f;

}
@ End

Rewritable drawRect method
Reply:
reference to the second floor of the reply:
customize a view to add controls
in the view where you need
UIView * MyToolView = [[UIView alloc] initWithFrame: CGRectMake (0, 0, 320, 44)];
UIBarButtonItem * UIBarBtn = [[UIBarButtonItem alloc] initWithCustomView: MyToolView];
......


mark next
Reply:
The reply was deleted at the moderator 2012-08-09 08:38:07

Iphone development splitView add view

From the template to create a new Split View-based Application, forced horizontal screen, how to add at the bottom of a view, the Add button on the view, click on the button view, splitView where tableViewController contents inside will also change (ie, in the left side of the table splitView With the contents of the toggle button click). Novice questions, we care a lot, thank you!
Reply:
You master, you great God, to the point ah!
Reply:
There is no know how to do ah?

How to allow the development of hello world running on a non-jailbroken ios system?

It is said that a signature to buy developer account before you can play?
That should not enter the Apple app store before they can run? Seeking advice!
Reply:
Apple Developer account can
Not on the app store
Reply:
landlord references replies:
reportedly looking for a signature developer account before you can play?
That should not enter the Apple app store before they can run? Seeking advice!


Apply for certification has certified to spend on it, $ 99
Reply:
The reply was deleted at the moderator 2012-08-09 08:38:07

Great God ios developers seeking help, Jiji Ji!

Have had a year of C / C + + client gaming experience, want to switch to ios development, I do not want one to buy a mac real machine, mainly the price is not cheap, my Dell i5cpu + win7 Ultimate 3G memory books, not know can not directly install mac os or virtual machine installed OS, and now I'm in the end of the addition where to start, to see what information or books that I hope to have the experience of a friend some advice extremely grateful.
Reply:
Take a look at the information it IOS development, and then try to start it
Reply:
inter series can be fitted black apple, you can not understand the vision to see the forum posts.
Then Beginner Recommended Books "iphone4 and ipad Development Essentials"
Reply:
Look at the object C based tutorial
Then "iphone4 and ipad Development Essentials"



Reply:
mac essential ah. Upgrade all aspects of convenience.
Reply:
references, 4th Floor reply:
mac essential ah. Upgrade all aspects of convenience.


+1
Reply:
ios5 a lot of books are behind, and I just feel itunesU in stanford tutorial that you can see, see 2011's, ios5, there are a lot of new features, in addition there are two books necessarily useful objective-c2.0 program design, and objective-c based tutorial.
Reply:
Vision Forum and the first look at the installed Wei Feng online tutorial black apple bar, dual system installed is not easy, old problems, if you do not love to toss it on a virtual machine installed, the virtual good equipment that is some cards, grammar book club Objective-c basic tutorial, developers will take a look at the book "iphone4 and ipad Development Essentials", in fact Cheats iphone development is also very good, very detailed, the feeling is not easy to accept beginners, these have the electronic version on the Internet, you You can take a look, if your English is good, then watch the iOS5 Development Essentials, which is the latest version, xcode version advanced point
Reply:
landlord references replies:
have had a year of C / C + + client gaming experience, want to switch to ios development, I do not want to buy a real mac machines, mainly the price is not cheap, my Dell i5cpu + win7 Ultimate 3G memory books, do not know can not directly install mac os or virtual machine installed OS, and now I'm in the end of the addition where to start, to see what the information or books, hope to have the experience of a friend to some suggestions, very grateful.


Just learn it, no need to buy a real machine, the existing memory can be changed 2 4G rose 8G, otherwise too card. Because just learning to use, buy some introductory books on iPhone development tutorial, according to the steps of books on the entry.
Reply:
Then toss it under the black apple!
Reply:
Loaded mac, you have two options, the first one, the computer supports hardware virtualization capabilities, it can be installed in the vm in; Or you can support the installation mac, this is not your computer supports hardware virtualization features, but installed, the driver does not good looking; Regarding see what data, first get to know the basic rules of grammar, and then to see people support the demo, learn common UI controls, since you did the game, then the network communications, multi-threaded sure the stuff is very simple, all are clouds ah, you have a C \ C + + on the basis of more powerful, promising you

iOS three kinds of methods to resolve Json National Weather Service API

Blog http://blog.csdn.net/duxinfeng2010/article/details/7842210

TouchJson library parsing
- (IBAction) buttonPressedone: (id) sender {
/ / Get API interface
NSURL * url = [NSURL URLWithString: @ "http://m.weather.com.cn/data/101010100.html"];
/ / Define a NSError object to capture error messages
NSError * error;
/ /
NSString * jsonString = [NSString stringWithContentsOfURL: url encoding: NSUTF8StringEncoding error: & error];
/ / NSLog (@ "jsonstring --->% @", jsonString);
/ / Get the contents of the store will be resolved in the dictionary, the encoding format UTF8, to prevent distortion occurs when the value
NSDictionary * rootDic = [[CJSONDeserializer deserializer] deserialize: [jsonString dataUsingEncoding: NSUTF8StringEncoding] error: & error];
/ / Because there are two return Json file, go to the second floor into the dictionary class content to 0?
NSDictionary * weatherInfo = [rootDic objectForKey: @ "weatherinfo"];
/ / Value Print
NSLog (@ "Today is% @% @% @ weather conditions are:% @% @", [weatherInfo objectForKey: @ "date_y"], [weatherInfo objectForKey: @ "week"], [weatherInfo objectForKey: @ "city "], [weatherInfo objectForKey: @" weather1 "], [weatherInfo objectForKey: @" temp1 "]);

}

SBJson library parsing

- (IBAction) buttonPressedtwo: (id) sender {
NSURL * url = [NSURL URLWithString: @ "http://m.weather.com.cn/data/101180701.html"];
NSError * error = nil;
NSString * jsonString = [NSString stringWithContentsOfURL: url encoding: NSUTF8StringEncoding error: & error];
SBJsonParser * parser = [[SBJsonParser alloc] init];

NSDictionary * rootDic = [parser objectWithString: jsonString error: & error];
NSDictionary * weatherInfo = [rootDic objectForKey: @ "weatherinfo"];

NSLog (@ "Today is% @% @% @ weather conditions are:% @% @", [weatherInfo objectForKey: @ "date_y"], [weatherInfo objectForKey: @ "week"], [weatherInfo objectForKey: @ "city "], [weatherInfo objectForKey: @" weather1 "], [weatherInfo objectForKey: @" temp1 "]);

}

iOS5 comes parse class of analytic
- (IBAction) buttonPressedthree: (id) sender {
NSError * error;
/ / Load a NSURL object
NSURLRequest * request = [NSURLRequest requestWithURL: [NSURL URLWithString: @ "http://m.weather.com.cn/data/101180601.html"]];
/ / The url requested data into NSData object
NSData * response = [NSURLConnection sendSynchronousRequest: request returningResponse: nil error: nil];
/ / IOS5 comes parsing class NSJSONSerialization parse out the data from the response into the dictionary
NSDictionary * weatherDic = [NSJSONSerialization JSONObjectWithData: response options: NSJSONReadingMutableLeaves error: & error];
/ / WeatherDic dictionary data is also stored in a typical word from inside it through the key value
NSDictionary * weatherInfo = [weatherDic objectForKey: @ "weatherinfo"];

NSLog (@ "Today is% @% @% @ weather conditions are:% @% @", [weatherInfo objectForKey: @ "date_y"], [weatherInfo objectForKey: @ "week"], [weatherInfo objectForKey: @ "city "], [weatherInfo objectForKey: @" weather1 "], [weatherInfo objectForKey: @" temp1 "]);
/ / Print out the stored data
weatherInfo dictionaryNSLog (@ "weatherInfo dictionary content inside is --->% @", [weatherInfo description]);
}

Reply:
Well, first on the favorites, but even the best point format LZ perfect


ios developed super group, between masters and masters to those indicated from CSDN: 43146334

If only 3K ios funds used for development, it is the choice to buy a mac iphone or choose to buy it

Poor scholar, did not graduate
I3 existing one computer
Following options
1.vm + Black Apple + xcode + iPhone real machine
2.mac real machine + xcode + iPhone Simulator

Which one would it be?
Reply:
Apple can only curse words too sinister. Suggested that if learning, feeling should choose option 2. 3k but not enough ah.
Reply:
Black PC + itouch 1.5 is enough, ha ha.
Reply:
Buy a black apple ipod touch +
Reply:
Or is it
Black Apple + simulatorDo not spend the
Reply:
Simulator some functions can not be achieved. iphone too expensive, itouch1.5 has been eliminated, the proposed landlord to buy itouch 4g, if speaking from a development point of view, there is no difference between basic and 4s. 3K you can not buy even mini, honestly virtual machine it.
Reply:
3k enough to buy mac. Used seemingly cheaper than where to go.
Reply:
3K not buy a lot of equipment
hinder progressNo real test, has no combat experience, such as loading speed, the simulator is fast, but the real machine is not, you have to do the appropriate treatment.
No MAC, so black apple, the trouble does not make sense only problem you will encounter more and more.
Reply:
Go directly to a company internship, like me, also did not graduate. The company has provided macbook ~
Reply:
i3 fitted black apples, the rest of the money to me.
Reply:
landlord references replies:
poor scholar, did not graduate
I3 existing one computer
Following options
1.vm + Black Apple + xcode + iPhone real machine
2.mac real machine + xcode + iPhone Simulator

Which one would it be?


You have to pay Apple $ 99 / year or 299 dollars / year registration account


Reply:
If you only 3K, took a real machine is useless, why? There is not the value of 99 developer account knife block your way ah, so candid, choose two bars, or if, to a unit training, not only their money, but also to develop something with genuine
Reply:
If your computer does not support hardware virtualization features, estimated vm you have not installed the black apple, but can also be hard-mounted to the other tray
Reply:
Recommended to buy TOUCH
Reply:
It is recommended to buy TOUCH

ios developed super group, between the master and the master: 43146334
Reply:
reference to the 12th floor of the reply:
If your computer does not support hardware virtualization features, estimated vm you have not installed the black apple, but you can also hard-mounted to the other tray
support, has been fitted with a

[Camera Issues] Remote principle of what is connected to the camera

Brother would like to ask

This works
wireless webcam
Webcam inside the server can be accessed
via TCP / IP
But

I do not know
1 camera at the time the return is how data compression?
2 What is the return data format?
3 Why do you want to get to decode the data?

Just principle does not seek or achieve
library
Principles do not know if things have not targeted O (∩ _ ∩) O Ha!

Reply:
Nobody knows? ? ?

APNS issue?

Who knows how APNS heartbeat specific interaction, the size of a heartbeat?

Also, if the phone QQ with APNS push message:
1, what between the server and the mobile phone QQ QQ client heartbeats news?

2, all the QQ message, as are APNS QQ QQ messaging between users to push, or only certain messages through APNS push?

3 different applications at the same time the message reaches the APNS to the same phone, these messages are sent to the mobile phone in the distribution, or line up in order to send?




Reply:
Add this:
I said above APNS heartbeat heartbeat APNS between mobile terminals and servers, only that 15min time? That is how specific it? Is the size of the message, every beat of the specific content of the message, what is it?
If anyone knows, please reply to me, okay? Grateful

XCode can not start [] newbie question, kindly guide

By installing lion 10.7 version of the virtual machine, install XCode 4.3 4.2 are advised to upgrade the system, as heard Black Apple opens automatically appear finer sorts of problems later, so the virtual machine to start first thing to do is to close automatically updated.
Last checked, support 4.1 XCode, went online one. During normal installation, first opened ms also normal, but the point when the new card works for a long time, and later on crash, and then every time you start and then be prompted restore window, suffered crash, never opened.
Then re-install the XCode, the problem remains the same as previously described, I do not know how to solve, but also a lot of expert advice.
Reply:
The reply was deleted at the moderator 2012-07-05 10:20:08

Reply:
Tragedy, delete re-download and install a try.
Reply:
Once installed above 10.6 10.7 too, but the virtual machine is mounted unsuccessful as direct loading dual system!
Reply:
xcode 4 possible
I tried no problem
Reply:
Never met, try reducing the Xcode version

UITextView determine the cursor in the first few lines, has come of

As stated, there are points to come
Reply:
The reply was deleted at the moderator 2012-07-08 08:54:55

Reply:
Good desolate, no one, to help the landlord Top
Reply:
reference to the second floor of the reply:
good desolate, no one, to help the landlord to Top

Xie Xie
Reply:
The reply was deleted at the moderator 2012-07-09 08:21:30

Reply:
Does not seem easy to handle, can only know the location, how that corresponds to the number of lines, it seems that was calculated based on the number of characters per line?
Reply:
First support topics where are you?
Reply:
http://blog.csdn.net/liyanbo1984/article/details/5807095
Did not test for reference
Reply:
The reply was deleted at the moderator 2012-07-09 12:52:43

Reply:
references, 5th Floor reply:
does not seem easy to handle, can only know the location, how that corresponds to the number of lines, it seems that was calculated based on the number of characters per line?

Location How to get? With the position easier to handle
Reply:
 
- (Int) getCursorPointY: (UITextView *) curtextView
{
CGPoint cursorPoint;
int Len = curtextView.selectedRange.location;
NSString * stringToCursor = [curtextView.text substringToIndex: Len];
NSArray * partStrArr = [stringToCursor componentsSeparatedByString: @ "\ n"];
int row = [partStrArr count];
CGSize fontsize = [@ "me" sizeWithFont: [curtextView font]];
for (NSString * partStr in partStrArr)
{
CGSize partStrSize = [partStr sizeWithFont: [curtextView font] constrainedToSize: curtextView.contentSize lineBreakMode: UILineBreakModeCharacterWrap];
NSLog (@ "partStrSize.width =% f, partStrSize.height =% f", partStrSize.width, partStrSize.height);
int rowG = partStrSize.height / fontsize.height;
if (rowG> 1) {
rowG - = 1;
row + = rowG;
}

}

cursorPoint.y = (row -1) * fontsize.height;

return (int) (cursorPoint.y);
}

This code can be accurately positioned over 4.3 years, 5.1 years but will have to locate each error, and the error is cumulative.
Reply:
This. . . . Not used, do not know.
Reply:
This really did not do ... friendship Bangding ...
Reply:
Look at this okay:
UITextRange * startTextRange = [textview characterRangeAtPoint: CGPointZero];
CGRect caretRect = [textview caretRectForPosition: startTextRange.end];
CGFloat topMargin = CGRectGetMinY (caretRect);
CGFloat lineHeight = CGRectGetHeight (caretRect);

caretRect = [textview caretRectForPosition: textview.selectedTextRange.end];
CGFloat caretTop = CGRectGetMinY (caretRect);
NSInteger lineIndex = (caretTop - topMargin) / lineHeight;
Reply:
reference to the 13th floor of the reply:
look at this okay:
UITextRange * startTextRange = [textview characterRangeAtPoint: CGPointZero];
CGRect caretRect = [textview caretRectForPosition: startTextRange.end];
CGFloat topMargin = CGRectGetMin ......

No, the first one on the runtime error
Reply:
Amount, which is the method ios5 and can not be used for ios4, it seems you need a comprehensive look
Reply:
reference to the 15th floor Reply:
amount, which is the method ios5 and can not be used for ios4, it seems you need a comprehensive look

Ah, I tried, problems and methods before I made the same number of rows whenever increase, there will be some errors, and finally become the first N lines was originally prompted the N-1 lines.
Reply:
The reply was deleted on 2012-07-13 08:19:33 moderator

Reply:
The reply was deleted on 2012-07-13 08:17:39 moderator

Reply:
Use uitextview of selectedRange attributes can get the position of the cursor
Reply:
reference to the 19th floor Reply:
use uitextview of selectedRange attributes can get the cursor position

But it does not determine the number of rows ah, if you can get good ordinate.
Reply:
The reply was deleted at the moderator 2012-07-24 09:23:29

Reply:
The reply was deleted at the moderator 2012-07-24 09:46:00

Reply:
Overloaded UITextView it!
Reply:
reference to the 20th floor Reply:
reference to the 19th floor Replies:

Use uitextview of selectedRange attributes can get the cursor position

But it does not determine the number of rows ah, if you can get good ordinate.

1, access to the cursor position with selectedRange thus highly
2 lines can be calculated with high
sizeWithFont3. Both division
Reply:

reference to the 24th floor of the reply:
reference to the 20th floor Replies:

19th Floor cited reply:

Use uitextview of selectedRange attributes can get the cursor position

But it does not determine the number of rows ah, if you can get good ordinate.

1, access to the cursor position with selectedRange thus highly
2 lines can be calculated with high
sizeWithFont3. Both divide

How come with selectedRange height ah? Only draw the character in the cursor position does not coordinate
Reply:
The reply was deleted at the moderator 2012-08-03 09:13:56

Reply:
Thank you, landlord good!
Reply:
Use uitextview of selectedRange attributes can get the cursor position

Reply:
Can you get a look at the width of each character, because the width of each character is not the same. But you have to judge this do? Talk about your purpose.
Reply:
reference to the 29th floor of the reply:
Can you get a look at the width of each character, because the width of each character is not the same. But you have to judge this do? Talk about your purpose.

For example, a chat software provides three lines of UITextview, however, the user's cursor reaches the second or third row, UITextview automatically scroll up when
Reply:
It's not on their own rolling it?
Reply:
cited 31 F reply:
it is not rolling it on their own?

I want to maintain the cursor in the second line, which is the second line on the scroll. Currently only need to determine the number of rows to get to the longitudinal coordinates of the cursor, the key is how to get
Reply:
The reply was deleted at the moderator 2012-08-10 11:58:35

Reply:
Not Bangniding
Reply:
The reply was deleted at the moderator 2012-08-10 16:12:28

Reply:
The reply was deleted at the moderator 2012-08-11 09:38:04

ipad file read and write permissions problem

I use cocos2d-x development project on ipad, using c + + and object-c bound form development
Procedures needed to update the data via the network.
In the simulator environment, create folders and files can be executed properly.
But in the real machine environment, read the file properly, but can not create a folder with the file tried objectc way c + + way, are not able to create. Suspected to be a permissions problem, solve this problem friends want to help solve it, thank you. Online.
Reply:
Look where you create folders and files. document folder permissions you have any disposal. It seems there is a two directories you are arbitrary disposal. But these directories are in your app below. Something that you have no permission to the directory.
Reply:
This programming language does not matter what you look ios allows you to create directories on it, so the system design. Unless you jailbreak it unimpeded up.
Reply:
your own directory under
app
document
library
tmp
Reply:
Proven folders can be created, but can not write to the file, write the location specified in the documents under the directory app, the simulator can be, not a real machine. Tried the following two kinds of ways:
BOOL bRet = [writer writeToFile: [NSString stringWithUTF8String: szFileName] atomically: YES];
/ / BRet to FALSE not successfully written to the file

FILE * pFile = fopen (szFileName, "w");
/ / PFile NULL is successfully written to the file

:/ var/mobile/Applications/8205B9DD-A503-4B75-8792-AD760753B4E1/Documents/Data/Pid00001/0.jpg
szFileName the valueA confirmed folder does exist, can successfully write to a file on the simulator, but the real machine can not.
Reply:
Try the temp path :/ private/var/mobile/Applications/8205B9DD-A503-4B75-8792-AD760753B4E1/tmp/Data/Pid00001/0.jpg
Still can not create file
Reply:
How to put the stickers out of your szfilename
Reply:
szFileName is my own group, the simulator can be used in combination follows the path function:
char * getFullPathName (char * szSubPath, char * szOutBuff)
{
NSString * path = [NSTemporaryDirectory () stringByAppendingPathComponent:
[[[NSString alloc] initWithUTF8String: szSubPath] autorelease]];
NSUInteger len = [path length];
memcpy (szOutBuff, [path UTF8String], strlen ([path UTF8String]));
szOutBuff [len] = '\ 0';
return szOutBuff;
}
If
char szFileName [MAX_PATH];
getFullPathName ("Data/Pid00001/0.jpg", szFileName);
In memory of the print result:
/ Private/var/mobile/Applications/8205B9DD-A503-4B75-8792-AD760753B4E1/tmp/Data/Pid00001/0.jpg

Reply:
Check :/ var/mobile/Applications/8205B9DD-A503-4B75-8792-AD760753B4E1/Documents / Data/Pid00001 / 0.jpg
Are there standard red file folder write permission, or to / Data/Pid00001/0.jpg are spelled _Data_Pid00001_0.jpg, write directly to the root directory of DOC, when the path with the file name.


Reply:
Recommended the establishment of a separate test project to test the read and write files.
Reply:
/ Private/var/mobile/Applications/8205B9DD-A503-4B75-8792-AD760753B4E1/tmp/Data/Pid00001/0.jpg, a path that you get this process is too complicated, in addition to this path exists?
Reply:
/ / Gets the root directory
NSString * homeDirectory = NSHomeDirectory ();
/ / Get the address of
tmp directoryNSString * tmpDirectory = [homeDirectory stringByAppendingPathComponent: @ "tmp"];


ios developed super group, between masters and masters to those indicated from CSDN: 43146334
Reply:
Found the problem, the next documents can be written to the file, but the file created folder does not write their own file permissions.
Also found under documents path although you can write files, but can not be deleted.
Also can not find how to build a kind of permission to read, write, delete files folder
Try tomorrow with tmp folder can delete files
Reply:
reference to the second floor of the reply:
This programming language does not matter what you look ios allows you to create directories on it, so the system design. Unless you jailbreak it unimpeded up.

The key is not found this. . . Otherwise, do not ask

On the updated version of the problem, call the heroes

on the iPhone development process, how to achieve version of the update.

Want to achieve is: Open the program, if there is a new version of it will pop up, it will install the new version after the user chooses to install the new version.

Hope heroes wing it!
Reply:
From the top!
Wait heroes appear!
Reply:
If you are into the appstore, and after playing the prompts that pop up to your operation appstore link inside the other things you are not doing.
Reply:
I also want to know, I want to publish to the app store if it should be taken over by him, the program itself can not do anything. Unlike the android that can detect and then download and install their own.
Reply:
Need server support
Reply:
The updated version of it to determine how
Reply:
With the server to determine how to achieve the updated version of it
references, 4th Floor cxsjabcabc reply:
need server support

Reply:
Why use server ah? I have such a variety App Update

1, with the POST method to send the request:

http://itunes.apple.com/lookup?id = Your application ID

2, the data needed to resolve the data obtained from the response. Because the information obtained from the appstore query is JSON format, so you need parsed.
json: {......
......
......
version = "1.4";
......
......
}
----------------------------
As for how to parse Json, this does not repeat.

Order: Usually I do not reply to old posts, today saw someone Fudge little friends joined the line, could not help but make an exception ......

Reply:
ybh37 master ah
Reply:

I'm not ......
CSDN have bothered to master it
Reply:
@ Ybh37 personally believe it is reasonable
serverRequest http://itunes.apple.com/lookup?id = Your application ID, will return a lot less than the information, but just need the version number, the waste flow. Although not much, but every time you open the application must request such a lot of data over the optimal solution is obviously not a
Reply:
reference to the 7th floor of replies:
Why use server ah? I have such a variety App Update

1, with the POST method to send the request:

http://itunes.apple.com/lookup?id = Your application ID

2, the data needed to resolve the data obtained from the response. Because the information obtained from the appstore query is JSON format, so you need parsed.
json: {......
......
......
version = "1.4";


.........


This is just one solution.

Daniel seeking help resolve json string

My json data http://www.cnliuda.com/API/index1_hot.asp this api inside, I always garbled resolve to find a lot of ways, but this problem has been bothering me, I hope to help resolve the great God who look, thank you.

Reply:
Do the next coding

Reply:
Json format does not seem correct, I checked with a tool, the tool tips: Unexpected token ILLEGAL
Reply:
You can refer to my JSON algorithm, but the C #
http://blog.csdn.net/roger_mmx/article/details/7854497

By
JSONArray ja = JSONConvert.DeserializeArray (textBox1.Text);
Reply:
You like this garbled HTML or URL encoding, decoding look
Reply:
Coding problem is garbled.
What is the server-side coding?
What used to encode client?
Under normal circumstances, let the server returns UTF-8 encoded data,
Use NSUTF8Encoding decoding client converting from NSData to NSString.
Most likely the server is not UTF-8 encoding, Win platform is likely to return to the default system encoding (GB2312 or GB18030).

How to save the class string variable, solve, ask you

Created a new class
@ Interface WebConnect: NSObject
/ / / / / / User Information
@ Property (retain, nonatomic) NSString * userID;

- (Int) splitTableInfo: (NSString *) resData;
@ End

@ Implementation WebConnect
- (Int) splitTableInfo: (NSString *) resData
{
NSArray * array = [resData componentsSeparatedByString: @ "^"];

userID = [array objectAtIndex: 1];
checkedTableInfoData = true;
return 0;

}
There is a userID

Somewhere to declare an object of this class, and allocate space
pwebOperator = [[WebConnect alloc] init];


Then a string assigned to another userID

Follows
NSString * resTimerInfoData = [[NSString alloc] initWithData: XXXXX encoding: NSUTF8StringEncoding];
[PwebOperator splitTableInfo: resTimerInfoData];
[ResTimerInfoData release];

Then print userID value

NSLog (@ "% @", pwebOperator. UserID) ;/ / You can print it out, no problem

But I found that I added a Timer loop print this sentence would not be immediately agreed to the assignment after userID OK, this will be reported in the Timer inside userID does not exist
I will @ property (retain, nonatomic) NSString * userID; modified into @ property (copy) NSString * userID;

I would like to userID this value is stored in the class, how to do it, iphone really depressed below
Myself clear with another number, start again



Reply:
userID = [array objectAtIndex: 1]; init about this place. Value you are quoted, arguably the beginning you should not be able to print out. Memory management trouble ah.
Reply:
Timer in the main thread it?
Reply:
When Timer executed pwebOperator instances still there? Are executed in the main thread it?
Reply:
reference to the second floor of the reply:
Timer in the main thread it?

Yes, pwebOperator are still where I test it in pwebOperator added a bool value that still exists, it still can be printed po
Reply:
cited a floor reply:
userID = [array objectAtIndex: 1]; init about this place. Value you are quoted, arguably the beginning you should not be able to print out. Memory management trouble ah.

I can not have init each assignment once about it, again, and now I have at least 30 inside the class NSString * variable types, these data are dynamic changes, do all this out once every assignment, that does not bother the dead the ah
Reply:
Upstairs What are you saying? userID = [array objectAtIndex: 1]; reform userID = [[nsstring alloc] initwithstring [array objectAtIndex: 1]];

Do not change you study it slowly. Of course, the existence of a value type, nsstring is a reference type.
Reply:
self.userID = @ "";
To write this.
Directly userID = @ "" does not increase the reference count.
Reply:
reference to the 7th floor of replies:
self.userID = @ "";
To write this.
Directly userID = @ "" does not increase the reference count.


Thank you for your answer, I try
Reply:
references 6th Floor reply:
upstairs What are you saying? userID = [array objectAtIndex: 1]; reform userID = [[nsstring alloc] initwithstring [array objectAtIndex: 1]];

Do not change you study it slowly. Of course, the existence of a value type, nsstring is a reference type.

In this case, only the second re-assignment when I first release of the re-assignment of
Reply:
reference to the 7th floor of replies:
self.userID = @ "";
To write this.
Directly userID = @ "" does not increase the reference count.


Thank you for your answer, your answer is correct, I tried, thank, thank you for your reply

A hello world program how to interpret it?

# Include

int main (int argc, const char * argv [])
{
for (int i = 0; i <5; i + +) {
printf ("China \ n");
}
return 0;
}

Finally, return 0; what role is it?

What two arguments main function is it?
Reply:
The return value is of type int main function, the function returns the value can not understand?

argc is the number of parameters, argv [] parameter representing them

So to execute the application:
. / Hello Parameter 1 Parameter 2
Reply:
Int return value can be understood, it returns 0 mean anything, what is 0 for non-return, return to positive and negative numbers What is the difference? Thanks to seniors
Reply:
Return value:
The usual practice is to return 0 for program execution is completed correctly, no error occurred. Returns a nonzero value indicates some error occurs, the specific value is defined by themselves, no fixed procedural requirements. And operation of the system does not return a different value because of changes because main () return value after the program has been successfully completed.

I guess, the return value will be acquired in the other external procedure call.

Parameters:
As a floor said, calling
. / Hello Parameter 1 Parameter 2

The value of the first main function argc is 2, which means that the number of parameters when calling hello
argv parameter value is represented by an array of incoming

Reply:
The return value is a numerical method returns nothing.

Function parameters that when you perform this method, you need to pass this parameter, like cinema tickets the same.

Parameters main method in the implementation, you can specify on the command line. 3 myself to say good!
Reply:
# 3 floor said it right
Reply:
The reply was deleted at the moderator 2012-03-28 08:26:21

Reply:
If you still can not understand the words, you can understand there is no effect, a fixed written. Later, you will slowly understand
Reply:
The reply was deleted at the moderator 2012-03-29 11:25:34

Reply:
You just write void main () {printf ("Hello World!");} Is correct. . . . main function is the starting point of a C function just like to write standardized. . .
Reply:
If you use another program to call your program, then you need to return the value of the program, is this a 0
Reply:
return 0; indicates a normal return

two parameters represent the main function of the address number of parameters, and parameters
Reply:
Everyone says are correct.
Reply:
The reply was deleted at the moderator 2012-07-27 10:11:28

Reply:
Use the command-line compiler.
Reply:
I think C lz still look better. The beginning of c is so written, and seemingly have nothing to iphone development
Reply:
argv parameters passed to start the application sandbox, sandbox contains the application needs to run library, application documentation, tmp applications, and the application itself.
Reply:
This is the problem c + + main function, regardless of the ios platform.
Proposal to buy the c + + primir look
Reply:
Generally return a value because we need this return value elsewhere;

Return 0 only because the habit of proper implementation of End main function returns 0;


Reply:
Take a look at C and then look at object-c that will understand some ......

Address
number of parameters, and parameters
return 0 return 0 for successful completion of the program